blob: ff12970199e9d1e6195dde906117292000043cb6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# Extract names of new files from a patch, print them out
PATCHFILE=$1
case "$PATCHFILE" in
*.gz) CMD="gzip -d < $PATCHFILE";;
*) CMD="cat $PATCHFILE";;
esac
TMP=$(mktemp /tmp/rbp-XXXXXX)
eval $CMD | egrep '^\+\+\+.*1970|\+\+\+.*1969' > $TMP
sed -e 's@[^/]*/\([^ ]*\).*@\1@' < $TMP | sed -e 's@^linux/@@' | sort
rm -f $TMP
|