Whamcloud - gitweb
Revert unintended commit to build/updatecw.sh
authorRobert Read <robert.read@oracle.com>
Wed, 30 Jun 2010 19:00:00 +0000 (12:00 -0700)
committerRobert Read <robert.read@oracle.com>
Wed, 30 Jun 2010 19:00:00 +0000 (12:00 -0700)
(These hacks were needed to update every file.)

build/updatecw.sh

index 4f8e40a..4e3408e 100755 (executable)
@@ -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