Start extracting language-specific formatters

This commit is contained in:
Michael Wolf
2023-09-18 16:44:26 -06:00
parent d1e6e953d1
commit 2cc53eb7e1
5 changed files with 72 additions and 4 deletions

View File

@@ -7,13 +7,18 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
here=$(pwd)
pushd $DIR
rm -f .root
echo "$(pwd)" > .root
popd
ret=0
# If this use of readlink breaks, see
# https://unix.stackexchange.com/questions/47710/find-only-destination-of-symlink
# for discussion of alternatives.
for i in _reformat-common.sh do-reformat.sh would-reformat.sh; do
for i in _reformat-common.bash do-reformat.sh would-reformat.sh .root; do
if [[ -f "$here"/bin/"$i" ]] ; then
dest=$(readlink bin/$i)
if [[ x"$dest" == x"$DIR/$i" ]] ; then