X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/acf6604ecf011d75c6fd99e4b94f90e40a6cb083..1d503b4d9b0c02497b56d06ffcd6c03ff7ab3c0a:/SPECS/build-nmh-cygwin diff --git a/SPECS/build-nmh-cygwin b/SPECS/build-nmh-cygwin index 359925ff..47bcdd93 100755 --- a/SPECS/build-nmh-cygwin +++ b/SPECS/build-nmh-cygwin @@ -71,9 +71,11 @@ export FULLPKG=${SHORTPKG}${REL} export src_orig_pkg_name= if [ -e "${src_orig_pkg_name}" ] ; then export opt_decomp=? # Make sure tar punts if unpack() is not redefined -elif [ -e ${BASEPKG}.tar.bz2 ] ; then - export opt_decomp=j - export src_orig_pkg_name=${BASEPKG}.tar.bz2 +# Change from generic-build-script: ${BASEPKG}.tar.bz2 is an output of +# this script, so don't trip over it on a rerun. +# elif [ -e ${BASEPKG}.tar.bz2 ] ; then +# export opt_decomp=j +# export src_orig_pkg_name=${BASEPKG}.tar.bz2 elif [ -e ${BASEPKG}.tar.gz ] ; then export opt_decomp=z export src_orig_pkg_name=${BASEPKG}.tar.gz @@ -234,12 +236,14 @@ mkdirs_log() { } # Unpack the original tarball, and get everything set up for this script. +# Change from generic-build-script: cd to ${srcdir} instead of ${topdir}. +# Change from generic-build-script: use -p1 instead of -p0 patch option. prep() { (cd ${topdir} && \ unpack ${src_orig_pkg} && \ - cd ${topdir} && \ + cd ${srcdir} && \ if [ -f ${src_patch} ] ; then \ - patch -Z -p0 < ${src_patch} ;\ + patch -Z -p1 < ${src_patch} ;\ fi && \ mkdirs ) }