From: David Levine Date: Tue, 8 May 2012 15:16:46 +0000 (-0500) Subject: Fixed patch section of prep(). X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=c920f1bfe01a74ae5664122628f89016e4e1dac6;p=mmh Fixed patch section of prep(). --- diff --git a/SPECS/build-nmh-cygwin b/SPECS/build-nmh-cygwin index 359925f..e7ce976 100755 --- a/SPECS/build-nmh-cygwin +++ b/SPECS/build-nmh-cygwin @@ -234,12 +234,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 ) }