Tidy all the perl files you have changed in a git branch:
>>
git diff --name-only origin/master | egrep "\.pl$|\.pm$|\.t$" | while
read file; do echo "Tidying: $file"; perltidy -b $file; test -e
"$file.bak" && { echo "Deleting $file.bak"; unlink "$file.bak"; }
done;
>> find . -iname '*.pl' -iname '*.pm' -iname '*.t' | while read file;
do echo "Tidying: $file"; perltidy -b $file; test -e "$file.bak" &&
{ echo "Deleting $file.bak"; unlink "$file.bak"; } done;
No comments:
Post a Comment