]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- add --topdir
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 24 Sep 2008 14:50:01 +0000 (14:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.564

builder.sh

index 7ff2d678bafcb9f6a1e35e32b912358e26585149..33edf094973e356f0e7272ef4735839e45138cf2 100644 (file)
@@ -1948,6 +1948,7 @@ init_rpm_dir() {
        TOP_DIR=$(eval $RPM $RPMOPTS --eval '%{_topdir}')
        CVSROOT=":pserver:cvs@$CVS_SERVER:/cvsroot"
 
+       echo "Initialising rpm directories to $TOP_DIR from $CVSROOT"
        mkdir -p $TOP_DIR/{RPMS,BUILD,SRPMS}
        cd $TOP_DIR
        cvs -d $CVSROOT co SOURCES/{.cvsignore,dropin} SPECS/{mirrors,md5,adapter{,.awk},fetchsrc_request,builder,{relup,compile,repackage}.sh}
@@ -2109,6 +2110,10 @@ while [ $# -gt 0 ]; do
                        shift; RPMOPTS="${RPMOPTS} ${1}"; shift ;;
                --nopatch | -np )
                        shift; RPMOPTS="${RPMOPTS} --define \"patch${1} : ignoring patch${1}; exit 1; \""; shift ;;
+               --topdir)
+                       RPMOPTS="${RPMOPTS} --define \"_topdir $2\""
+                       shift 2
+                       ;;
                --with | --without )
                        case $GROUP_BCONDS in
                                "yes")
This page took 0.04102 seconds and 4 git commands to generate.