Win32 build: some more patchfile cleanups

Wrap patching code in conditional in most cases to only run patch if
there actually is a patch file available.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22715 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2013-01-19 18:28:00 +00:00
parent 15c3a1bfd4
commit c33eaf006e

View File

@ -722,7 +722,9 @@ function inst_guile() {
tar -xzpf $_GUILE_BALL -C $TMP_UDIR
assert_one_dir $TMP_UDIR/guile-*
qpushd $TMP_UDIR/guile-*
if [ -n "$GUILE_PATCH" -a -f "$GUILE_PATCH" ]; then
patch -p1 < $GUILE_PATCH
fi
ACLOCAL="aclocal $ACLOCAL_FLAGS" autoreconf -fvi $ACLOCAL_FLAGS
./configure ${HOST_XCOMPILE} \
--disable-static \
@ -1116,7 +1118,9 @@ function inst_libxslt() {
wget_unpacked $LIBXSLT_SRC_URL $DOWNLOAD_DIR $TMP_DIR
assert_one_dir $TMP_UDIR/libxslt-*
qpushd $TMP_UDIR/libxslt-*
if [ -n "$LIBXSLT_MAKEFILE_PATCH" -a -f "$LIBXSLT_MAKEFILE_PATCH" ]; then
patch -p0 -u -i ${LIBXSLT_MAKEFILE_PATCH}
fi
./configure ${HOST_XCOMPILE} \
--prefix=${_LIBXSLT_UDIR} \
--with-python=no \