SPECS: builder - tagging speedup (branch SOURCES at once)
glen
glen at pld-linux.org
Mon May 22 23:41:37 CEST 2006
Author: glen Date: Mon May 22 21:41:37 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- tagging speedup (branch SOURCES at once)
---- Files affected:
SPECS:
builder (1.432 -> 1.433)
---- Diffs:
================================================================
Index: SPECS/builder
diff -u SPECS/builder:1.432 SPECS/builder:1.433
--- SPECS/builder:1.432 Mon May 22 23:39:21 2006
+++ SPECS/builder Mon May 22 23:41:31 2006
@@ -1037,25 +1037,28 @@
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
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/builder?r1=1.432&r2=1.433&f=u
More information about the pld-cvs-commit
mailing list