Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / scripts / removed-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/rbp-XXXXXX)
11
12 eval $CMD | egrep '^\+\+\+.*1970|\+\+\+.*1969' > $TMP
13 sed -e 's@[^/]*/\([^    ]*\).*@\1@' < $TMP | sed -e 's@^linux/@@' | sort
14 rm -f $TMP