Whamcloud - gitweb
- bring in akpm's patch management scripts and a first cut at
[fs/lustre-release.git] / lustre / kernel_patches / scripts / added-by-patch
1 #!/bin/sh
2 # Extract names of new files from a patch, print them out
3
4 PATCHFILE=$1
5 case "$PATCHFILE" in
6 *.gz) CMD="gzip -d < $PATCHFILE";;
7 *)    CMD="cat $PATCHFILE";;
8 esac
9
10 TMP=$(mktemp /tmp/abp.XXXXXX)
11
12 eval $CMD | egrep '^--- .*1969|^--- .*1970' > $TMP
13 sed -e 's@[^/]*/\([^    ]*\).*@\1@' < $TMP | sed -e 's@^linux/@@' | sort
14 rm -f $TMP