debian/patches/features/all/vserver/gen-patch: Add.

svn path=/dists/trunk/linux-2.6/; revision=7698
This commit is contained in:
Bastian Blank 2006-11-06 10:30:14 +00:00
parent 95a27fcb56
commit 08f8f7f354
1 changed files with 14 additions and 0 deletions

14
debian/patches/features/all/vserver/gen-patch vendored Executable file
View File

@ -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"