pld-builder.new: client/rebuild-th-kernel.sh (NEW), client/send-last-th-tag...
arekm
arekm at pld-linux.org
Fri Mar 30 17:09:30 CEST 2012
Author: arekm Date: Fri Mar 30 15:09:30 2012 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
- raw
---- Files affected:
pld-builder.new/client:
rebuild-th-kernel.sh (NONE -> 1.1) (NEW), send-last-th-tag.sh (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: pld-builder.new/client/rebuild-th-kernel.sh
diff -u /dev/null pld-builder.new/client/rebuild-th-kernel.sh:1.1
--- /dev/null Fri Mar 30 17:09:30 2012
+++ pld-builder.new/client/rebuild-th-kernel.sh Fri Mar 30 17:09:25 2012
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+case "$1" in
+ longterm)
+ cd ~/rpm/packages
+ for a in dahdi-linux ipset iscsitarget lirc madwifi-ng open-vm-tools r8168 VirtualBox xorg-driver-video-nvidia xorg-driver-video-nvidia-legacy3 xtables-addons xorg-driver-video-fglrx openvswitch; do
+ ~/bin/send-last-th-tag.sh -d th --kernel longterm --without userspace $a/$a.spec
+ done
+ for a in e1000e igb; do
+ ./relup.sh -ui $a/$a.spec && make-request.sh -d th --kernel longterm $a.spec
+ done
+ ;;
+ head)
+ cd ~/rpm/packages
+ for a in dahdi-linux ipset iscsitarget lirc madwifi-ng open-vm-tools r8168 VirtualBox xorg-driver-video-nvidia xorg-driver-video-nvidia-legacy3 xtables-addons xorg-driver-video-fglrx; do
+ ./relup.sh -ui $a/$a.spec && make-request.sh -d th $a.spec
+ done
+ ;;
+ *)
+ echo "UNKNOWN CRAP $1 !"
+ ;;
+esac
================================================================
Index: pld-builder.new/client/send-last-th-tag.sh
diff -u /dev/null pld-builder.new/client/send-last-th-tag.sh:1.1
--- /dev/null Fri Mar 30 17:09:30 2012
+++ pld-builder.new/client/send-last-th-tag.sh Fri Mar 30 17:09:25 2012
@@ -0,0 +1,35 @@
+#!/bin/sh
+arg="$@"
+
+specs=""
+opt=""
+
+for i in $arg; do
+ case "$i" in
+ *.spec)
+ specs="$specs $1"
+ shift
+ ;;
+ *)
+ opt="$opt $i"
+ shift
+ ;;
+ esac
+done
+
+for i in $specs; do
+ dir=$(dirname $i)
+ pkg=$(basename $i)
+ cd $dir || exit 1
+ specfile="$pkg"
+ tag=$(cvs status -v $specfile |grep "th-" | head -n 1 | awk ' { print $1 } ')
+ if [ -z "$tag" ]; then
+ echo "Th tag not found for $specfile."
+ continue
+ fi
+ echo "Rebuilding $i from tag $tag..."
+ set -x
+ make-request.sh -d th $opt $pkg:$tag
+ set +x
+done
+
================================================================
More information about the pld-cvs-commit
mailing list