[kernel] r7698 - dists/trunk/linux-2.6/debian/patches/features/all/vserver

Bastian Blank waldi at alioth.debian.org
Mon Nov 6 10:30:14 UTC 2006


Author: waldi
Date: Mon Nov  6 11:30:14 2006
New Revision: 7698

Added:
   dists/trunk/linux-2.6/debian/patches/features/all/vserver/gen-patch   (contents, props changed)
Log:
debian/patches/features/all/vserver/gen-patch: Add.


Added: dists/trunk/linux-2.6/debian/patches/features/all/vserver/gen-patch
==============================================================================
--- (empty file)
+++ dists/trunk/linux-2.6/debian/patches/features/all/vserver/gen-patch	Mon Nov  6 11:30:14 2006
@@ -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"



More information about the Kernel-svn-changes mailing list