summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dc2bcaf)
Add pevious mass copyright update and cfs wrapper changes
to the list of excluded patches.
Many files have incorrect author date set, revert to
using the git committer date for the patch date.
--follow and --author were not working properly.
Screen for Author after the git log call. Git log
call code came via Andreas Dilger.
Signed-off-by: Keith Mannthey <keith.mannthey@intel.com>
Change-Id: I46cf74b48095b54ac58dc17b6b0f94c9cf23cb8a
Reviewed-on: http://review.whamcloud.com/6183
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
# Does not add copyright notices to files that are missing them
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
# Does not add copyright notices to files that are missing them
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
-# Copyright (c) 2012, Intel Corporation.
+# Copyright (c) 2012, 2013, Intel Corporation.
#
TMP=${TMP:-/tmp}
TMPFILE=$(mktemp $TMP/updatecopy.XXXXXX)
#
TMP=${TMP:-/tmp}
TMPFILE=$(mktemp $TMP/updatecopy.XXXXXX)
f2a9374170e4522b9d2ac3b7096cf2912339d480\n
3f90f344ae059b30e7d23e4fe554a985eb827b02\n
320e014a2c93cb905637d178269b80847cb8d277\n
f2a9374170e4522b9d2ac3b7096cf2912339d480\n
3f90f344ae059b30e7d23e4fe554a985eb827b02\n
320e014a2c93cb905637d178269b80847cb8d277\n
+08aa217ce49aba1ded52e0f7adb8a607035123fd\n
+2841be335687840cf98961e6c6cde6ee9312e4d7\n
cd8c65642f1c36b56ae74a0414a1f1f27337a662'}
XYRACOPY="Copyright.*Xyratex Technology Limited"
cd8c65642f1c36b56ae74a0414a1f1f27337a662'}
XYRACOPY="Copyright.*Xyratex Technology Limited"
echo -e $EXCLUDE > $EXCFILE
git ls-files $DIRS | grep -v ${0##*/} | while read FILE; do
echo -e $EXCLUDE > $EXCFILE
git ls-files $DIRS | grep -v ${0##*/} | while read FILE; do
-#FILE=lustre/mdt/mdt_hsm.c
-#FILE=lustre/include/lustre_quota.h
- if [ "$FILE" == 'build/updatecw.sh' ]; then
+ if [ "$FILE" == 'contrib/scripts/updatecw.sh' ]; then
echo $FILE": *** EDIT MANUALLY ***"
continue
fi
NEEDCOPY=false
# Pick only files that have changed since START
echo $FILE": *** EDIT MANUALLY ***"
continue
fi
NEEDCOPY=false
# Pick only files that have changed since START
- git log --follow --since=$START --author=$AUTH_WHAM --author=$AUTH_INT\
- --pretty=format:"%ai %H" $FILE | grep -v -f $EXCFILE |
- cut -d- -f1 > $TMPFILE
+ # %ai author dates holds has bad data: April 2013
+ git log --follow --since=$START --pretty=format:"%ae %ci %H" $FILE |\
+ grep -v -f $EXCFILE |\
+ awk "/$AUTH_WHAM|$AUTH_INT/ {print substr(\$2,1,4)}"> $TMPFILE
+
# Skip files not modified by $AUTHOR
[ -s "$TMPFILE" ] || continue
# Skip files not modified by $AUTHOR
[ -s "$TMPFILE" ] || continue