some script cleanup

master
http://davrieb.livejournal.com/ 2009-09-19 19:46:06 -04:00 committed by Joey Hess
parent 3b33b3cc3f
commit 8ae7356b09
1 changed files with 5 additions and 3 deletions

View File

@ -96,11 +96,13 @@ Do I have it right?
set +x
for FILE in **/*(.); do
TIMES="`git log --follow --pretty=format:%ai $FILE`"
TIMES="`git log --pretty=format:%ai $FILE`"
MTIME="`echo $TIMES | head -n1`"
echo touch -m -d "$MTIME" $FILE
touch -m -d "$MTIME" $FILE
if [ ! -z $MTIME ]; then
echo touch -m -d "$MTIME" $FILE
touch -m -d "$MTIME" $FILE
fi
done