SPECS: builder - tag by 100 file chunks

glen glen at pld-linux.org
Sat Sep 22 12:16:41 CEST 2007


Author: glen                         Date: Sat Sep 22 10:16:41 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- tag by 100 file chunks

---- Files affected:
SPECS:
   builder (1.518 -> 1.519) 

---- Diffs:

================================================================
Index: SPECS/builder
diff -u SPECS/builder:1.518 SPECS/builder:1.519
--- SPECS/builder:1.518	Sat Sep 22 12:06:49 2007
+++ SPECS/builder	Sat Sep 22 12:16:36 2007
@@ -1171,8 +1171,13 @@
 		fi
 		if [ -n "$TAG" ]; then
 			update_shell_title "tag sources: $TAG"
-			printf "Tagging %d files\n" $(echo $tag_files | wc -w)
-			cvs $OPTIONS $TAG $tag_files || exit
+
+			while [ "$tag_files" ]; do
+				local chunk=$(echo $tag_files | tr ' ' '\n' | head -n 100)
+				printf "Tagging %d files\n" $(echo $chunk | wc -w)
+				cvs $OPTIONS $TAG $chunk || exit
+				tag_files=$(echo $tag_files | tr ' ' '\n' | tail +101)
+			done
 		fi
 	fi
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/builder?r1=1.518&r2=1.519&f=u



More information about the pld-cvs-commit mailing list