]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- added -ni (--no-init) option to not initialize
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 25 Apr 2006 14:09:37 +0000 (14:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  (set them to .) SPECS_DIR and SOURCES_DIR

Changed files:
    builder.sh -> 1.416

builder.sh

index 66648d13aa6b9e0fbb1c36745720f341b7f2f26b..f5bbb05ead702a3666a919658c4263925fb7e32a 100644 (file)
@@ -242,6 +242,7 @@ Usage: builder [-D|--debug] [-V|--version] [-a|--as_anon] [-b|-ba|--build]
 -ns, --no-srcs      - don't download Sources
 -ns0, --no-source0  - don't download Source0
 -nn, --no-net       - don't download anything from the net
+-ni, --no-init      - don't initialize builder paths (SPECS and SOURCES)
 -ske,
 --skip-existing-files - skip existing files in get_files
 --opts <rpm opts>   - additional options for rpm
@@ -437,7 +438,7 @@ get_icons()
                return
        fi
 
-       rpm_dump_cache="böö" NODIST="yes" UPDATE5= get_files $ICONS
+       rpm_dump_cache="böö" "NODIST="yes" UPDATE5= get_files $ICONS
 }
 
 parse_spec()
@@ -543,8 +544,13 @@ init_builder()
                set -v;
        fi
 
-       SOURCE_DIR="`eval $RPM $RPMOPTS --eval '%{_sourcedir}'`"
-       SPECS_DIR="`eval $RPM $RPMOPTS --eval '%{_specdir}'`"
+       [ "$NOINIT" != "yes" ] ; then
+               SOURCE_DIR="`eval $RPM $RPMOPTS --eval '%{_sourcedir}'`"
+               SPECS_DIR="`eval $RPM $RPMOPTS --eval '%{_specdir}'`"
+       else
+               SOURCE_DIR="."
+               SPECS_DIR="."
+       fi
 
        __PWD="`pwd`"
 }
@@ -1699,6 +1705,9 @@ do
                        NOSRCS="yes"
                        ALWAYS_CVSUP="no"
                        shift;;
+               -ni | --no-init )
+                       NOINIT="yes"
+                       shift;;
                --opts )
                        shift; RPMOPTS="$RPM_OPTS ${1}"; shift ;;
                --nopatch | -np )
This page took 0.048259 seconds and 4 git commands to generate.