debian/patches/features/all/vserver/gen-patch: Add.
svn path=/dists/trunk/linux-2.6/; revision=7698
This commit is contained in:
parent
95a27fcb56
commit
08f8f7f354
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
patch="$1"
|
||||
|
||||
error() {
|
||||
echo "$@";
|
||||
exit 1
|
||||
}
|
||||
|
||||
version=$(filterdiff -p 1 -i Makefile "$patch" | grep "+EXTRAVERSION" | sed -e 's,.* -,,')
|
||||
[ "$version" ] || error "can't find version!"
|
||||
|
||||
file="$version.patch"
|
||||
|
||||
filterdiff -p 1 -x Makefile -x init/version.c "$patch" > "$file"
|
Loading…
Reference in New Issue