commit c86a1aaeeb0621219decd6ab5d0d0cb179776d39
Author: Elan Ruusamäe <[email protected]>
Date:   Mon Jun 25 06:19:27 2012 +0000

    - autotag build provider by -a option
    
    Changed files:
        client/send-last-th-tag.sh -> 1.2

 send-last-th-tag.sh | 35 +++--------------------------------
 1 file changed, 3 insertions(+), 32 deletions(-)
---
diff --git a/send-last-th-tag.sh b/send-last-th-tag.sh
index 1d56bd5..293e39d 100644
--- a/send-last-th-tag.sh
+++ b/send-last-th-tag.sh
@@ -1,35 +1,6 @@
 #!/bin/sh
-arg="$@"
+set -e
 
-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
+dist=th
 
+./make-request.sh -d $dist -r -a "$@"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to