From af347df97192108c52af0fb254ace3e7ffaac67d Mon Sep 17 00:00:00 2001 From: Robert Read Date: Wed, 30 Jun 2010 12:00:00 -0700 Subject: [PATCH 1/1] Revert unintended commit to build/updatecw.sh (These hacks were needed to update every file.) --- build/updatecw.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/updatecw.sh b/build/updatecw.sh index 4f8e40a..4e3408e 100755 --- a/build/updatecw.sh +++ b/build/updatecw.sh @@ -15,7 +15,7 @@ LECDATE="2010-02-15" git ls-files build ldiskfs libcfs lnet lustre snmp |grep -v ${0##*/} | while read FILE; do # Pick only files that have changed since LECDATE - if true; then + if [ -n "$(git log -n1 --since=$LECDATE $FILE)" ]; then OLDCOPY="$(egrep "$SUNCOPY|$ORACOPY" $FILE | sed 's/.*Copy/Copy/')" if [ -z "$OLDCOPY" ]; then case $FILE in @@ -29,7 +29,7 @@ git ls-files build ldiskfs libcfs lnet lustre snmp |grep -v ${0##*/} | while rea # Get commit dates git log --follow --pretty=format:%ci $FILE | cut -d- -f1 > $TMPFILE - NEWYEAR=2010 + NEWYEAR=$(head -1 $TMPFILE) OLDYEAR=$(tail -1 $TMPFILE) rm $TMPFILE -- 1.8.3.1