summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorjlam <jlam>2002-11-20 08:38:16 +0000
committerjlam <jlam>2002-11-20 08:38:16 +0000
commit9507f3338570e9ddec6e113aa6e69ae6696ce8ba (patch)
tree135e575b2139d32381297edc2ac7542c8b44ce06 /shells
parent122a83bf917abc8845cd7014bfea43cf612cdcc5 (diff)
downloadpkgsrc-9507f3338570e9ddec6e113aa6e69ae6696ce8ba.tar.gz
Check that the gettext headers and libraries exist before symlinking them.
Diffstat (limited to 'shells')
-rw-r--r--shells/bash2/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile
index 88f3fa52794..bd7edf21109 100644
--- a/shells/bash2/Makefile
+++ b/shells/bash2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2002/11/17 09:02:00 salo Exp $
+# $NetBSD: Makefile,v 1.37 2002/11/20 08:38:16 jlam Exp $
#
DISTNAME= bash-2.05
@@ -52,8 +52,11 @@ pre-build:
pre-configure:
cd ${GETTEXT_PREFIX}; \
for file in include/libintl.h lib/libintl.*; do \
- ${MKDIR} ${GETTEXTDIR}/`${DIRNAME} $${file}`; \
- ${LN} -sf ${GETTEXT_PREFIX}/$${file} ${GETTEXTDIR}/$${file}; \
+ if [ -f "$${file}" ]; then \
+ ${MKDIR} ${GETTEXTDIR}/`${DIRNAME} $${file}`; \
+ ${LN} -sf ${GETTEXT_PREFIX}/$${file} \
+ ${GETTEXTDIR}/$${file}; \
+ fi; \
done
post-install: