diff options
author | Brent Cook <bcook@openbsd.org> | 2016-01-03 19:00:25 -0600 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2016-01-03 21:20:02 -0600 |
commit | cf86bf85812c14827be31b95a89581e243a1165f (patch) | |
tree | 1fbefd6faeccdf15c45bd05f2663c956efcf8c83 | |
parent | 38c577d7587cac4b305dfa913029d9b750445700 (diff) | |
download | portable-cf86bf85812c14827be31b95a89581e243a1165f.tar.gz portable-cf86bf85812c14827be31b95a89581e243a1165f.tar.bz2 portable-cf86bf85812c14827be31b95a89581e243a1165f.zip |
prefer gnu patch on AIX
-rwxr-xr-x | update.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -301,8 +301,13 @@ add_man_links() { | |||
301 | } | 301 | } |
302 | 302 | ||
303 | # apply local patches | 303 | # apply local patches |
304 | PATCH=patch | ||
305 | # Prefer gnu patch on AIX systems, if available | ||
306 | if [ -x /opt/freeware/bin/patch ]; then | ||
307 | PATCH=/opt/freeware/bin/patch | ||
308 | fi | ||
304 | for i in patches/*.patch; do | 309 | for i in patches/*.patch; do |
305 | patch -p0 < $i | 310 | $PATCH -p0 < $i |
306 | done | 311 | done |
307 | 312 | ||
308 | # copy manpages | 313 | # copy manpages |