pld-builder.new: client/rebuild-th-kernel.sh - make no args to work as auto...
glen
glen at pld-linux.org
Sun Apr 1 23:00:11 CEST 2012
Author: glen Date: Sun Apr 1 21:00:11 2012 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
- make no args to work as autotag finder
---- Files affected:
pld-builder.new/client:
rebuild-th-kernel.sh (1.2 -> 1.3)
---- Diffs:
================================================================
Index: pld-builder.new/client/rebuild-th-kernel.sh
diff -u pld-builder.new/client/rebuild-th-kernel.sh:1.2 pld-builder.new/client/rebuild-th-kernel.sh:1.3
--- pld-builder.new/client/rebuild-th-kernel.sh:1.2 Sun Apr 1 15:55:51 2012
+++ pld-builder.new/client/rebuild-th-kernel.sh Sun Apr 1 23:00:06 2012
@@ -44,20 +44,27 @@
get_last_tags() {
local pkg spec
- for pkg in $*; do
+
+ echo >&2 "Fetching package tags: $*..."
+ for pkg in "$@"; do
echo >&2 "$pkg... "
- if [ ! -e $pkg/$pkg.spec ]; then
- $rpmdir/builder -g $pkg -ns -r HEAD
+ if [ ! -e $pkg/$pkg.spec ]; then
+ $rpmdir/builder -g $pkg -ns -r HEAD 1>&2
+ fi
+ if [ ! -e $pkg/$pkg.spec ]; then
+ # just print it out, to fallback to base pkg name
+ echo "$pkg"
+ else
+ spec=$(autotag $pkg/$pkg.spec)
+ echo >&2 "... $spec"
+ echo $spec
fi
- spec=$(autotag $pkg/$pkg.spec)
- echo >&2 "... $spec"
- echo $spec
done
}
+cd $rpmdir
case "$1" in
head)
- cd $rpmdir
for pkg in $pkgs_head; do
$rpmdir/builder -g $pkg -ns
echo ./relup.sh -ui $a/$a.spec && make-request.sh -d th $a.spec
@@ -65,15 +72,30 @@
;;
longterm)
cd $rpmdir
- echo "Fetching package tags..."
specs=$(get_last_tags $pkgs_longterm)
- set -x
$dir/make-request.sh -r -d $dist --kernel longterm --without userspace $specs
-# for pkg in $pkgs_longterm_only; do
-# echo ./relup.sh -ui $a/$a.spec && make-request.sh -d th --kernel longterm $a.spec
-# done
+
+ specs=$pkgs_longterm_only
+ $dir/make-request.sh -r -d $dist --kernel longterm $specs
;;
*)
- echo "UNKNOWN CRAP $1 !"
+ # try to parse all args, filling them with last autotag
+ while [ $# -gt 0 ]; do
+ case "$1" in
+ --kernel|--with|--without)
+ args="$1 $2"
+ shift
+ ;;
+ -*)
+ args="$args $1"
+ ;;
+ *)
+ specs="$specs $1"
+ ;;
+ esac
+ shift
+ done
+ specs=$(get_last_tags $specs)
+ $dir/make-request.sh -r -d $dist $args $specs
;;
esac
================================================================
---- CVS-web:
http://cvs.pld-linux.org/pld-builder.new/client/rebuild-th-kernel.sh?r1=1.2&r2=1.3
More information about the pld-cvs-commit
mailing list