build-sys: use set +e before patch --try in ./autogen.sh
Addresses: https://github.com/karelzak/util-linux/issues/1476 Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
b0a8b8cd9c
commit
34389ad03b
1 changed files with 2 additions and 0 deletions
|
@ -134,10 +134,12 @@ if test -f tools/libtool.m4.patch; then
|
||||||
rm m4/libtool.m4
|
rm m4/libtool.m4
|
||||||
mv m4/libtool.m4.org m4/libtool.m4
|
mv m4/libtool.m4.org m4/libtool.m4
|
||||||
fi
|
fi
|
||||||
|
set +e
|
||||||
patch --batch --dry -p1 < tools/libtool.m4.patch > /dev/null 2>&1
|
patch --batch --dry -p1 < tools/libtool.m4.patch > /dev/null 2>&1
|
||||||
if [ "$?" -eq 0 ]; then
|
if [ "$?" -eq 0 ]; then
|
||||||
patch -p1 --batch < tools/libtool.m4.patch
|
patch -p1 --batch < tools/libtool.m4.patch
|
||||||
fi
|
fi
|
||||||
|
set -e
|
||||||
fi
|
fi
|
||||||
|
|
||||||
aclocal -I m4 $AL_OPTS
|
aclocal -I m4 $AL_OPTS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue