From: Robert Read Date: Wed, 30 Jun 2010 19:00:00 +0000 (-0700) Subject: Revert unintended commit to build/updatecw.sh X-Git-Tag: v2_0_0-rc1~5 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=af347df97192108c52af0fb254ace3e7ffaac67d;ds=sidebyside Revert unintended commit to build/updatecw.sh (These hacks were needed to update every file.) --- 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