]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - adapter.sh
- append .spec where necessary
[packages/rpm-build-tools.git] / 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.025889 seconds and 4 git commands to generate.