]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- fix bootstrap
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 3 Mar 2007 14:40:57 +0000 (14:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.481

builder.sh

index 3e4fb19195505b74f9a293a01af8bfa5dcd10a40..4e4b27483c855ad68d5d13b4d968ec5c258b6854 100644 (file)
@@ -537,6 +537,9 @@ Exit_error()
                        remove_build_requires
                        echo "ERROR: spec file name not specified."
                        exit 2 ;;
+               "err_invalid_cmdline" )
+                       echo "ERROR: invalid command line arg ($2)."
+                       exit 2 ;;
                "err_no_spec_in_repo" )
                        remove_build_requires
                        echo "Error: spec file not stored in CVS repo."
@@ -2015,7 +2018,11 @@ while [ $# -gt 0 ]; do
                        RPMOPTS="${RPMOPTS} --nodeps"
                        ;;
                -debug)
-                       RPMBUILDOPTS="${RPMBUILDOPTS} -debug"; shift ;;
+                       RPMBUILDOPTS="${RPMBUILDOPTS} -debug"; shift
+                       ;;
+               -* )
+                       Exit_error err_invalid_cmdline "$1"
+                       ;;
                * )
                        SPECFILE="${1}"
                        # check if specname was passed as specname:cvstag
@@ -2027,7 +2034,7 @@ while [ $# -gt 0 ]; do
        esac
 done
 
-if [ -z "$CVSTAG" ]; then
+if [ -f CVS/Entries ] && [ -z "$CVSTAG" ]; then
        CVSTAG=$(awk -vSPECFILE="${SPECFILE%.spec}.spec" -F/ '$2 == SPECFILE && $6 ~ /^T/{print substr($6, 2)}' CVS/Entries)
        if [ "$CVSTAG" ]; then
                echo >&2 "builder: Stick tag $CVSTAG active. Use -r TAGNAME to override."
This page took 0.114319 seconds and 4 git commands to generate.