CVSROOT: filter_tags.sh - verbose error of too many tagged files

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


Author: glen                         Date: Sat Sep 22 10:10:10 2007 GMT
Module: CVSROOT                       Tag: HEAD
---- Log message:
- verbose error of too many tagged files

---- Files affected:
CVSROOT:
   filter_tags.sh (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: CVSROOT/filter_tags.sh
diff -u CVSROOT/filter_tags.sh:1.18 CVSROOT/filter_tags.sh:1.19
--- CVSROOT/filter_tags.sh:1.18	Tue Jun 19 14:39:03 2007
+++ CVSROOT/filter_tags.sh	Sat Sep 22 12:10:05 2007
@@ -91,9 +91,11 @@
 		AC_ADMIN=1 ;;
 esac
 
-if [ $((`echo $* | wc -w`)) -gt $((3+$MAX_FIL_REV_PARMS)) ]; then
+nfiles=$((`echo $* | wc -w`))
+limit=$((3+$MAX_FIL_REV_PARMS))
+if [ $nfiles -gt $limit ]; then
 	if [ "$LIMITED_BRANCH" = 1 ]; then
-		echo "Attempt to tag too many files"
+		echo "Attempt to tag too many files ($nfiles; limit: $limit)"
 		exit 1
 	fi
 fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/CVSROOT/filter_tags.sh?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list