Start extracting language-specific formatters
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user