]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- tagging speedup (branch SOURCES at once)
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 22 May 2006 21:41:31 +0000 (21:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.433

builder.sh

index 94c719f3171a56040d4791108ce211243a407028..2ea18ffd9e4def250ffd7f7664ecabe1e1f7c257 100644 (file)
@@ -1037,25 +1037,28 @@ branch_files()
                set -v;
        fi
 
-       if [ -n "$1$2$3$4$5$6$7$8$9${10}" ]; then
+       if [ $# gt 0 ]; then
 
-               OPTIONS="tag -b"
+               local OPTIONS="tag -b"
                if [ -n "$CVSROOT" ]; then
                        OPTIONS="-d $CVSROOT $OPTIONS"
                fi
                cd "$SOURCE_DIR"
-               for i in $TAG_FILES
-               do
-                       if [ -f `nourl $i` ]; then
-                               cvs $OPTIONS $TAG `nourl $i`
+               local tag_files
+               for i in $TAG_FILES; do
+                       local fp=`nourl "$i"`
+                       if [ -f "$fp" ]; then
+                               tag_files="$tag_files $fp"
                        else
                                Exit_error err_no_source_in_repo $i
                        fi
                done
+               if [ "$tag_files" ]; then
+                       cvs $OPTIONS $TAG $tag_files
+               fi
+
                cd "$SPECS_DIR"
                cvs $OPTIONS $TAG $SPECFILE
-
-               unset OPTIONS
        fi
 }
 
This page took 0.03624 seconds and 4 git commands to generate.