]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
Let the .spec extension be optional
authorjk <jacek@szuwary.org>
Mon, 13 Jan 2003 16:21:51 +0000 (16:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.126

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.039131 seconds and 4 git commands to generate.