mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2145 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
29
ibmvstgt/generate-in-tree-patches
Executable file
29
ibmvstgt/generate-in-tree-patches
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
kernel_version="$1"
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
echo "Error: missing kernel version argument."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "${1#2.6.35}" = "$1" ]; then
|
||||
# Exit silently for other kernel versions than 2.6.35.x.
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mkdir -p in-tree-patches/"${kernel_version}"
|
||||
|
||||
for f in src/orig/"${kernel_version}"/*
|
||||
do
|
||||
g="${f#src/orig/${kernel_version}/}"
|
||||
f1="$f"
|
||||
f2="src/$g"
|
||||
if [ ! -e "$f2" ]; then
|
||||
f2="src/libsrpnew${f2#src/libsrp}"
|
||||
fi
|
||||
f3="in-tree-patches/${kernel_version}/$g.patch"
|
||||
if [ "$f1" -nt "$f3" -o "$f2" -nt "$f3" ]; then
|
||||
diff -up "$f1" "$f2" > "$f3"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user