CVSROOT: namecheck.sh - act properly for SPECS module

baggins baggins at pld-linux.org
Wed May 16 16:31:18 CEST 2007


Author: baggins                      Date: Wed May 16 14:31:18 2007 GMT
Module: CVSROOT                       Tag: HEAD
---- Log message:
- act properly for SPECS module

---- Files affected:
CVSROOT:
   namecheck.sh (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: CVSROOT/namecheck.sh
diff -u CVSROOT/namecheck.sh:1.7 CVSROOT/namecheck.sh:1.8
--- CVSROOT/namecheck.sh:1.7	Wed May 16 16:14:43 2007
+++ CVSROOT/namecheck.sh	Wed May 16 16:31:13 2007
@@ -13,6 +13,15 @@
 while [ $# -gt 0 ]; do
 	file=$1
 	pkgname=${file%%.*}
+	if [ "$module" == "SPECS" ]; then
+		pkgname=${file%.spec}
+		if [ "${pkgname}.spec" = "$file" ] ;then
+			mkdir $CVSROOT/packages/$pkgname
+		else
+			echo "Warning: File '$file' is not a spec file, it shouldn't be in SPECS module!"
+		fi
+		continue
+	fi
 	while [ ! -d $CVSROOT/packages/$pkgname ]; do
 #		echo $pkgname
 		if [ $pkgname = ${pkgname%-*} ]; then
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/CVSROOT/namecheck.sh?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list