diff options
author | Kyle McMartin <kyle@redhat.com> | 2011-10-31 16:13:17 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@redhat.com> | 2011-10-31 16:13:17 -0400 |
commit | cb23ecf36ce5e800b9f897b780b94e0c27a1bb7a (patch) | |
tree | 881bfedd8cc6318ca8b6883eacddebcc50e8c90d | |
parent | 420c123ef49a4416c6626028d6a872c073975fc4 (diff) | |
download | kernel-cb23ecf36ce5e800b9f897b780b94e0c27a1bb7a.tar.gz kernel-cb23ecf36ce5e800b9f897b780b94e0c27a1bb7a.tar.xz kernel-cb23ecf36ce5e800b9f897b780b94e0c27a1bb7a.zip |
Drop bit-rotted scripts
-rw-r--r-- | scripts/cross-amd64.sh | 3 | ||||
-rw-r--r-- | scripts/cross-i586.sh | 3 | ||||
-rw-r--r-- | scripts/cross-i686.sh | 3 | ||||
-rw-r--r-- | scripts/cross-ia64.sh | 2 | ||||
-rw-r--r-- | scripts/cross-iseries.sh | 3 | ||||
-rw-r--r-- | scripts/cross-ppc.sh | 3 | ||||
-rw-r--r-- | scripts/cross-ppc64.sh | 3 | ||||
-rw-r--r-- | scripts/cross-ppc8260.sh | 3 | ||||
-rw-r--r-- | scripts/cross-ppc8560.sh | 3 | ||||
-rw-r--r-- | scripts/cross-pseries.sh | 3 | ||||
-rw-r--r-- | scripts/cross-s390.sh | 2 | ||||
-rw-r--r-- | scripts/cross-s390x.sh | 2 | ||||
-rwxr-xr-x | scripts/get-snapshot.sh | 35 | ||||
-rwxr-xr-x | scripts/pull-upstreams.sh | 12 | ||||
-rwxr-xr-x | scripts/rebase.sh | 169 |
15 files changed, 0 insertions, 249 deletions
diff --git a/scripts/cross-amd64.sh b/scripts/cross-amd64.sh deleted file mode 100644 index b3119d8fc..000000000 --- a/scripts/cross-amd64.sh +++ /dev/null @@ -1,3 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make CROSS_COMPILE=x86_64-linux- ARCH=x86_64 hammer - diff --git a/scripts/cross-i586.sh b/scripts/cross-i586.sh deleted file mode 100644 index 000f4ae7e..000000000 --- a/scripts/cross-i586.sh +++ /dev/null @@ -1,3 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make ARCH=i386 i586 - diff --git a/scripts/cross-i686.sh b/scripts/cross-i686.sh deleted file mode 100644 index 5c0cfe137..000000000 --- a/scripts/cross-i686.sh +++ /dev/null @@ -1,3 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make ARCH=i386 i686 - diff --git a/scripts/cross-ia64.sh b/scripts/cross-ia64.sh deleted file mode 100644 index 5699a57c1..000000000 --- a/scripts/cross-ia64.sh +++ /dev/null @@ -1,2 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make CROSS_COMPILE=ia64-linux- ARCH=ia64 ia64 diff --git a/scripts/cross-iseries.sh b/scripts/cross-iseries.sh deleted file mode 100644 index 71bfd9156..000000000 --- a/scripts/cross-iseries.sh +++ /dev/null @@ -1,3 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make CROSS_COMPILE=ppc64-linux- ARCH=ppc64 ppc64iseries - diff --git a/scripts/cross-ppc.sh b/scripts/cross-ppc.sh deleted file mode 100644 index c49b740f3..000000000 --- a/scripts/cross-ppc.sh +++ /dev/null @@ -1,3 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make CROSS_COMPILE=ppc-linux- ARCH=ppc ppc - diff --git a/scripts/cross-ppc64.sh b/scripts/cross-ppc64.sh deleted file mode 100644 index fb29d4481..000000000 --- a/scripts/cross-ppc64.sh +++ /dev/null @@ -1,3 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make CROSS_COMPILE=ppc64-linux- ARCH=ppc64 ppc64 - diff --git a/scripts/cross-ppc8260.sh b/scripts/cross-ppc8260.sh deleted file mode 100644 index 10fbc3292..000000000 --- a/scripts/cross-ppc8260.sh +++ /dev/null @@ -1,3 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make CROSS_COMPILE=ppc-linux- ARCH=ppc ppc8260 - diff --git a/scripts/cross-ppc8560.sh b/scripts/cross-ppc8560.sh deleted file mode 100644 index 405f98a9c..000000000 --- a/scripts/cross-ppc8560.sh +++ /dev/null @@ -1,3 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make CROSS_COMPILE=ppc-linux- ARCH=ppc ppc8560 - diff --git a/scripts/cross-pseries.sh b/scripts/cross-pseries.sh deleted file mode 100644 index 724a8e582..000000000 --- a/scripts/cross-pseries.sh +++ /dev/null @@ -1,3 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make CROSS_COMPILE=ppc64-linux- ARCH=ppc64 pseries64 - diff --git a/scripts/cross-s390.sh b/scripts/cross-s390.sh deleted file mode 100644 index 4a274397c..000000000 --- a/scripts/cross-s390.sh +++ /dev/null @@ -1,2 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make CROSS_COMPILE=s390-linux- ARCH=s390 s390 diff --git a/scripts/cross-s390x.sh b/scripts/cross-s390x.sh deleted file mode 100644 index 1cdc98a73..000000000 --- a/scripts/cross-s390x.sh +++ /dev/null @@ -1,2 +0,0 @@ -export PATH=$PATH:/opt/cross/bin -make CROSS_COMPILE=s390x-linux- ARCH=s390 s390x 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 diff --git a/scripts/pull-upstreams.sh b/scripts/pull-upstreams.sh deleted file mode 100755 index 8dc8497d8..000000000 --- a/scripts/pull-upstreams.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -utrace_base=2.6.37 - -url=http://people.redhat.com/roland/utrace/${1:-$utrace_base} - -wget -q -O /dev/stdout $url/series | grep 'patch$' | -while read i -do - rm -f linux-2.6-$i - wget -nv -O linux-2.6-$i $url/$i -done diff --git a/scripts/rebase.sh b/scripts/rebase.sh deleted file mode 100755 index e9b50cf40..000000000 --- a/scripts/rebase.sh +++ /dev/null @@ -1,169 +0,0 @@ -#!/bin/bash - -KORG26="http://ftp.kernel.org/pub/linux/kernel/v2.6" -KORG26SNAPS="${KORG26}/snapshots" -KORG26TESTING="${KORG26}/testing" - -if [ ! -f /usr/bin/curl ]; then - echo yum install curl - exit 0 -fi - -# Current kernel bits -if [ `grep -c patch-2.6 sources` -ge 1 ]; then - export OLD=`grep patch-2.6 sources | awk '{print $2}' | tail -n1 | sed s/patch-// | sed s/\.bz2//` -else - export OLD=`grep linux-2.6 sources | awk '{print $2}' | tail -n1 | sed s/linux-// | sed s/\.tar\.bz2//` -fi -export OLDBASE=`echo $OLD | sed s/-/\ /g | sed s/2\.6\.// | awk '{ print $1 }'` -if [ `echo $OLD | grep -c rc` -ge 1 ]; then - export OLDRC=`echo $OLD | sed s/-/\ /g | sed s/rc// | awk '{ print $2 }'` - if [ `echo $OLD | grep -c git` -ge 1 ]; then - export OLDGIT=`echo $OLD | sed s/-/\ /g | sed s/git// | awk '{ print $3 }'` - else - export OLDGIT=0 - fi -else - export OLDRC=0 - if [ `echo $OLD | grep -c git` -ge 1 ]; then - export OLDGIT=`echo $OLD | sed s/-/\ /g | sed s/git// | awk '{ print $2 }'` - else - export OLDGIT=0 - fi -fi - -# Is there a new snapshot or prepatch ? -NEW=`curl -s http://www.kernel.org/kdist/finger_banner | grep "latest snapshot 2.6 version"` -if [ -z "$NEW" ] ; then - NEW=`curl -s http://www.kernel.org/kdist/finger_banner | grep "latest mainline 2.6 version"` - if [ -z "$NEW" ] ; then - if [ "$OLDRC" -ne 0 ] ; then - NEW=`curl -s http://www.kernel.org/kdist/finger_banner | grep "latest stable 2.6." | head -n1` - else - echo "No new rc or git snapshot of stable branch". - exit 0 - fi - fi -fi -export N=`echo $NEW | awk '{ print $11 }'` -if [ -z "$N" ]; then - # "Stable version" - export NEW=`echo $NEW | awk '{ print $10 }'` -else - export NEW=`echo $NEW | awk '{ print $11 }'` -fi - -export NEWBASE=`echo $NEW | sed s/-/\ /g | sed s/2\.6\.// | awk '{ print $1 }'` -if [ `echo $NEW | grep -c rc` -ge 1 ]; then - export NEWRC=`echo $NEW | sed s/-/\ /g | sed s/rc// | awk '{ print $2 }'` - if [ `echo $NEW | grep -c git` -ge 1 ]; then - export NEWGIT=`echo $NEW | sed s/-/\ /g | sed s/git// | awk '{ print $3 }'` - else - export NEWGIT=0 - fi -else - export NEWRC=0 - if [ `echo $NEW | grep -c git` -ge 1 ]; then - export NEWGIT=`echo $NEW | sed s/-/\ /g | sed s/git// | awk '{ print $2 }'` - else - export NEWGIT=0 - fi -fi - -echo "OLD kernel was $OLD BASE=$OLDBASE RC=$OLDRC GIT=$OLDGIT" -echo "NEW kernel is $NEW BASE=$NEWBASE RC=$NEWRC GIT=$NEWGIT" - -if [ "$OLDRC" -eq 0 -a "$OLDGIT" -eq 0 -a "$OLDGIT" -ne "$NEWGIT" ]; then - echo "Rebasing from a stable release to a new git snapshot" - perl -p -i -e 's/^%define\ released_kernel\ 1/\%define\ released_kernel\ 0/' kernel.spec - perl -p -i -e 's/^%define\ rawhide_skip_docs\ 1/\%define\ rawhide_skip_docs\ 0/' kernel.spec - # force these to zero in this case, they may not have been when we rebased to stable - perl -p -i -e 's/^%define\ rcrev.*/\%define\ rcrev\ 0/' kernel.spec - perl -p -i -e 's/^%define\ gitrev.*/\%define\ gitrev\ 0/' kernel.spec -fi - -# make sure we build docs at least once per -rc kernel, shut it off otherwise -if [ "$OLDRC" -ne 0 -a "$NEWRC" -gt "$OLDRC" ]; then - perl -p -i -e 's/^%define\ rawhide_skip_docs\ 1/\%define\ rawhide_skip_docs\ 0/' kernel.spec -else - if [ "$NEWRC" -eq "$OLDRC" -a "$NEWGIT" -gt "$OLDGIT" ]; then - # common case, same -rc, new -git, make sure docs are off. - perl -p -i -e 's/^%define\ rawhide_skip_docs\ 0/\%define\ rawhide_skip_docs\ 1/' kernel.spec - fi -fi - -if [ "$NEWRC" -eq 0 -a "$NEWGIT" -eq 0 ]; then - echo "Rebasing from -rc to final release." - perl -p -i -e 's/^%define\ released_kernel\ 0/\%define\ released_kernel\ 1/' kernel.spec - perl -p -i -e 's/^%define\ rawhide_skip_docs\ 1/\%define\ rawhide_skip_docs\ 0/' kernel.spec - export OLD_TARBALL_BASE=$(($OLDBASE-1)) - perl -p -i -e 's/^%define\ base_sublevel\ $ENV{OLD_TARBALL_BASE}/%define\ base_sublevel\ $ENV{NEWBASE}/' kernel.spec - perl -p -i -e 's/^%define\ rcrev.*/\%define\ rcrev\ 0/' kernel.spec - perl -p -i -e 's/^%define\ gitrev.*/\%define\ gitrev\ 0/' kernel.spec - - grep -v kernel-2.6.$OLD_TARBALL_BASE .gitignore >.gitignore.tmp ; mv .gitignore.tmp .gitignore - echo kernel-2.6.$NEWBASE >> .gitignore - - for i in sources .gitignore - do - grep -v linux-2.6.$OLD_TARBALL_BASE.tar.bz2 $i > .$i.tmp; mv .$i.tmp $i - grep -v patch-2.6.$OLDBASE-rc$OLDRC.bz2 $i > .$i.tmp; mv .$i.tmp $i - grep -v patch-2.6.$OLDBASE-rc$OLDRC-git$OLDGIT.bz2 $i > .$i.tmp; mv .$i.tmp $i - done - - rm -f linux-2.6.$OLD_TARBALL_BASE.tar.bz2 - rm -f patch-2.6.$OLDBASE-rc$OLDRC.bz2 - rm -f patch-2.6.$OLDBASE-rc$OLDRC-git$OLDGIT.bz2 - - curl -O $KORG26/linux-$NEW.tar.bz2 - fedpkg upload linux-$NEW.tar.bz2 - - exit 1 -fi - -if [ "$OLDRC" != "$NEWRC" ]; then - echo "Different rc. Rebasing from $OLDRC to $NEWRC" - perl -p -i -e 's/^%define\ rcrev.*/\%define\ rcrev\ $ENV{"NEWRC"}/' kernel.spec - grep -v patch-2.6.$OLDBASE-rc$OLDRC.bz2 sources > .sources.tmp; mv .sources.tmp sources - rm -f patch-2.6.$OLDBASE-rc$OLDRC.bz2 - - curl -O $KORG26TESTING/patch-2.6.$NEWBASE-rc$NEWRC.bz2 - fedpkg upload patch-2.6.$NEWBASE-rc$NEWRC.bz2 - - # Another awkward (albeit unlikely) corner case. - # Moving from say 26-rc3-git1 to 26-rc4-git1 - # The above will grab the new -rc, but the below will - # think that the -git hasn't changed. - # Fudge around this, by pretending the old git was something crazy. - OLDGIT=99 -fi - -if [ "$OLDGIT" != "$NEWGIT" ]; then - if [ "$OLDRC" -eq 0 -a "$OLDGIT" -eq 0 ]; then - echo "Rebasing to pre-rc git$NEWGIT" - else - echo "Different git. Rebasing from git$OLDGIT to git$NEWGIT" - fi - perl -p -i -e 's/^%define\ gitrev.*/\%define\ gitrev\ $ENV{"NEWGIT"}/' kernel.spec - if [ "$OLDGIT" -ne 0 ]; then - grep -v patch-$OLD.bz2 sources > .sources.tmp; mv .sources.tmp sources - fi - - if [ "$NEWGIT" -ne 0 ]; then - curl -O $KORG26SNAPS/patch-$NEW.bz2 - fi - fedpkg upload patch-$NEW.bz2 - - if [ "$OLDGIT" -ne 0 ]; then - rm -f patch-$OLD.bz2 - fi -fi - -if [ "$OLDRC" != "$NEWRC" -o "$OLDGIT" != "$NEWGIT" ]; then - perl -p -i -e 's|^ApplyPatch\ git-linus.diff|#ApplyPatch\ git-linus.diff|' kernel.spec - > git-linus.diff - fedpkg clog - exit 1 -else - exit 0 -fi |