CVSROOT: namecheck.sh - cleanup

baggins baggins at pld-linux.org
Wed May 16 19:40:53 CEST 2007


Author: baggins                      Date: Wed May 16 17:40:53 2007 GMT
Module: CVSROOT                       Tag: HEAD
---- Log message:
- cleanup

---- Files affected:
CVSROOT:
   namecheck.sh (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: CVSROOT/namecheck.sh
diff -u CVSROOT/namecheck.sh:1.11 CVSROOT/namecheck.sh:1.12
--- CVSROOT/namecheck.sh:1.11	Wed May 16 16:39:14 2007
+++ CVSROOT/namecheck.sh	Wed May 16 19:40:48 2007
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-#echo $@
-
 module=${1##$CVSROOT}
 module=${module#/}
 shift
@@ -12,21 +10,21 @@
 retval=0
 while [ $# -gt 0 ]; do
 	file=$1
+	shift
+	echo "Checking file: '$file'"
 	pkgname=${file%%.*}
 	if [ "$module" == "SPECS" ]; then
 		pkgname=${file%.spec}
 		if [ "${pkgname}.spec" = "$file" ] ;then
 			[ -d $CVSROOT/packages/$pkgname ] || mkdir -p $CVSROOT/packages/$pkgname/files
+			echo "Created directories for package '$package'"
 		else
 			echo "Warning: File '$file' is not a spec file, it shouldn't be in SPECS module!"
 		fi
-		shift
 		continue
 	fi
 	while [ ! -d $CVSROOT/packages/$pkgname ]; do
-#		echo $pkgname
 		if [ $pkgname = ${pkgname%-*} ]; then
-#			echo END
 			break;
 		fi
 		pkgname=${pkgname%-*}
@@ -36,9 +34,7 @@
 		echo "If this is what you want, please add it to packages/%{name} module"
 #		retval=1
 	fi
-#	echo $file
 	echo "Found package '$pkgname'"
-	shift
 done
 
 echo "END OF TEST MESSAGE"
================================================================

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



More information about the pld-cvs-commit mailing list