]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- append .spec where necessary
authorAdam Gołębiowski <adamg@pld-linux.org>
Tue, 3 Jun 2008 14:34:17 +0000 (14:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.sh -> 1.27

adapter.sh

index ad4a4298703991e8376bede5c119ce897544fd6b..f7d23ef7697f9636084e3a5b0ad13ec89f2e9218 100644 (file)
@@ -189,10 +189,12 @@ adapterize()
        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
This page took 0.036477 seconds and 4 git commands to generate.