Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- bring in akpm's patch management scripts and a first cut at
[fs/lustre-release.git]
/
lustre
/
kernel_patches
/
scripts
/
p0-2-p1
diff --git a/lustre/kernel_patches/scripts/p0-2-p1
b/lustre/kernel_patches/scripts/p0-2-p1
new file mode 100755
(executable)
index 0000000..
266c698
--- /dev/null
+++ b/
lustre/kernel_patches/scripts/p0-2-p1
@@ -0,0
+1,10
@@
+#!/bin/sh
+#
+# Usage: p0-2-p1 olddir newdir
+#
+OLDDIR=$1
+NEWDIR=$2
+
+sed -e "s/^--- \([^\/].*\)/--- $OLDDIR\/\1/" |
+sed -e "s/^+++ \([^\/].*\)/+++ $NEWDIR\/\1/"
+