SPECS: adapter - append .spec where necessary

adamg adamg at pld-linux.org
Tue Jun 3 16:34:22 CEST 2008


Author: adamg                        Date: Tue Jun  3 14:34:22 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- append .spec where necessary

---- Files affected:
SPECS:
   adapter (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: SPECS/adapter
diff -u SPECS/adapter:1.26 SPECS/adapter:1.27
--- SPECS/adapter:1.26	Sat Apr  5 10:42:43 2008
+++ SPECS/adapter	Tue Jun  3 16:34:17 2008
@@ -189,10 +189,12 @@
 	rm -rf $tmpdir
 }
 
-if [ $# -ne 1 -o ! -f "$1" ]; then
+SPECFILE="$1"
+[ -f "$SPECFILE" ] || SPECFILE="$(basename $SPECFILE .spec).spec"
+
+if [ $# -ne 1 -o ! -f "$SPECFILE" ]; then
 	echo "$usage"
 	exit 1
 fi
 
-SPECFILE="$1"
 adapterize
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/adapter?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list