prefer gnu patch on AIX

This commit is contained in:
Brent Cook 2016-01-03 19:00:25 -06:00
parent 38c577d758
commit cf86bf8581

View File

@ -301,8 +301,13 @@ add_man_links() {
}
# apply local patches
PATCH=patch
# Prefer gnu patch on AIX systems, if available
if [ -x /opt/freeware/bin/patch ]; then
PATCH=/opt/freeware/bin/patch
fi
for i in patches/*.patch; do
patch -p0 < $i
$PATCH -p0 < $i
done
# copy manpages