summaryrefslogtreecommitdiffstats
path: root/scripts/get-snapshot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/get-snapshot.sh')
-rwxr-xr-xscripts/get-snapshot.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/get-snapshot.sh b/scripts/get-snapshot.sh
deleted file mode 100755
index 79d2b095e..000000000
--- a/scripts/get-snapshot.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/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