summaryrefslogtreecommitdiffstats
path: root/freed-ora/current/F-12/scripts/get-snapshot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'freed-ora/current/F-12/scripts/get-snapshot.sh')
-rwxr-xr-xfreed-ora/current/F-12/scripts/get-snapshot.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/freed-ora/current/F-12/scripts/get-snapshot.sh b/freed-ora/current/F-12/scripts/get-snapshot.sh
new file mode 100755
index 000000000..79d2b095e
--- /dev/null
+++ b/freed-ora/current/F-12/scripts/get-snapshot.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+VER=$(tail -n1 upstream | sed s/bz2/id/)
+rm -f $VER
+wget -c http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/$VER
+SHA1=$(cat $VER)
+rm -f patch-2.6.*-git*.id
+
+cd ~/src/git-trees/kernel/linux-2.6
+git pull
+
+DIF=$(git diff $SHA1.. | wc -l)
+if [ "$DIF" = "0" ]; then
+ echo Nothing changed.
+ exit
+fi
+TOT=$(git log | head -n1)
+
+git diff $SHA1.. > ~/src/fedora/kernel/devel/git-linus-new.diff
+cd ~/src/fedora/kernel/devel/
+DIF=$(cmp git-linus.diff git-linus-new.diff)
+if [ "$?" = "0" ]; then
+ echo Nothing new in git
+ rm -f git-linus-new.diff
+ exit
+fi
+mv git-linus-new.diff git-linus.diff
+
+perl -p -i -e 's|^#ApplyPatch\ git-linus.diff|ApplyPatch\ git-linus.diff|' kernel.spec
+
+echo "- Merge Linux-2.6 up to" $TOT > ~/src/fedora/kernel/devel/clog.tmp
+cd ~/src/fedora/kernel/devel/
+bumpspecfile.py kernel.spec "$(cat clog.tmp)"
+rm -f clog.tmp
+make clog
OpenPOWER on IntegriCloud