packages: repackage.sh - autoadd .spec ext to spec

glen glen at pld-linux.org
Thu Oct 28 23:10:15 CEST 2010


Author: glen                         Date: Thu Oct 28 21:10:15 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- autoadd .spec ext to spec

---- Files affected:
packages:
   repackage.sh (1.31 -> 1.32) 

---- Diffs:

================================================================
Index: packages/repackage.sh
diff -u packages/repackage.sh:1.31 packages/repackage.sh:1.32
--- packages/repackage.sh:1.31	Wed Feb  3 12:20:37 2010
+++ packages/repackage.sh	Thu Oct 28 23:10:09 2010
@@ -95,6 +95,10 @@
 		echo >&2 "Usage: ${0##*/} PACKAGE.spec"
 		exit 1
 	fi
+else
+	# $1 must be spec, ensure it has .spec ext
+	spec=$1; shift
+	set -- ${spec#.spec}.spec "$@"
 fi
 
 tmp=$(specdump "$@" | awk '$2 == "_target_cpu" {print $3}')
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/repackage.sh?r1=1.31&r2=1.32&f=u



More information about the pld-cvs-commit mailing list