summaryrefslogtreecommitdiff
path: root/shells/tcsh
diff options
context:
space:
mode:
authoragc <agc>1999-03-11 08:24:21 +0000
committeragc <agc>1999-03-11 08:24:21 +0000
commit4a62d26e7a2f9f66c6ddacf3fc6b185b808d5f2e (patch)
treef2255b09e8edf878783faae0fd2bfa25a3cd4cb5 /shells/tcsh
parent54659a73618badddf1717113a23e7f2a2105bc78 (diff)
downloadpkgsrc-4a62d26e7a2f9f66c6ddacf3fc6b185b808d5f2e.tar.gz
Simplify the shell scripting here, so that this package works on Solaris.
Diffstat (limited to 'shells/tcsh')
-rw-r--r--shells/tcsh/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/shells/tcsh/Makefile b/shells/tcsh/Makefile
index 85305983e1f..587967c7bdf 100644
--- a/shells/tcsh/Makefile
+++ b/shells/tcsh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 1998/11/13 12:31:15 agc Exp $
+# $NetBSD: Makefile,v 1.16 1999/03/11 08:24:21 agc Exp $
#
DISTNAME= tcsh-6.08
@@ -41,11 +41,9 @@ post-install:
s=$$1; shift; \
c=$$1; shift; \
o=; \
- for j; \
- do \
- d=${NLSDIR}/$${c}_$${j}.$${s}; \
- if [ -z "$$o" ]; \
- then \
+ while [ $$# -gt 0 ]; do \
+ d=${NLSDIR}/$${c}_$$1.$${s}; \
+ if [ -z "$$o" ]; then \
o="$$d"; \
${INSTALL_DATA} ${WRKSRC}/tcsh.$${l}.cat \
${PREFIX}/$${d}/tcsh.cat; \
@@ -54,6 +52,7 @@ post-install:
${PREFIX}/$${d}; \
fi; \
${ECHO} $${d}/tcsh.cat >> ${PLIST_SRC}; \
+ shift 1; \
done; \
done
@${ECHO} "updating /etc/shells"; \