]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - builder.sh
Let the .spec extension be optional
[packages/rpm-build-tools.git] / builder.sh
index 1ffe23a1c0dd575185ef45169865b547ee7c705f..d1ab3cac985eb9c8d628d86bc4a5b780cb8213f9 100644 (file)
@@ -84,7 +84,7 @@ Usage: builder [-D|--debug] [-V|--version] [-a|--as_anon] [-b|-ba|--build]
        [-Tvs|--tag-version-stable] [-Tvn|--tag-version-nest]
        [-Ts|--tag-stable] [-Tn|--tag-nest] [-Tv|--tag-version]
        [-nu|--no-urls] [-v|--verbose] [--opts <rpm opts>]
-       [--with/--without <feature>] [--define <macro> <value>] <package>.spec
+       [--with/--without <feature>] [--define <macro> <value>] <package>[.spec]
 
        -D, --debug     - enable script debugging mode,
        -V, --version   - output builder version
@@ -608,7 +608,7 @@ while test $# -gt 0 ; do
            RPMOPTS="${RPMOPTS} --define \"${MACRO} ${VALUE}\""
            ;;
        * )
-           SPECFILE="${1}"; shift ;;
+           SPECFILE="`basename ${1} .spec`.spec"; shift ;;
     esac
 done
 
This page took 0.0696369999999999 seconds and 4 git commands to generate.