X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Fupdatecw.sh;h=4e3408e002dec029d7d614939265066316389fec;hp=4f8e40acf2213636cc5891141b719fbd50fcae21;hb=0d5cf708f60c1ed9233fd12f4326851ab412ef6a;hpb=0f8dca08a4f68cba82c2c822998ecc309d3b7aaf 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