summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-11-20 08:38:16 +0000
committerjlam <jlam@pkgsrc.org>2002-11-20 08:38:16 +0000
commit81a8137163c462b8cbca186274f69fe8937cc639 (patch)
tree135e575b2139d32381297edc2ac7542c8b44ce06 /shells
parent97340929eb93ac1a5de175c25afe6b16f53b487c (diff)
downloadpkgsrc-81a8137163c462b8cbca186274f69fe8937cc639.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: