summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-03-11 08:24:21 +0000
committeragc <agc@pkgsrc.org>1999-03-11 08:24:21 +0000
commit9f4dfd95f988b6e06dd58fa41cd1e9ee67200355 (patch)
treef2255b09e8edf878783faae0fd2bfa25a3cd4cb5 /shells
parent08e06f380956dfc9efcef812822c82da89d3fd25 (diff)
downloadpkgsrc-9f4dfd95f988b6e06dd58fa41cd1e9ee67200355.tar.gz
Simplify the shell scripting here, so that this package works on Solaris.
Diffstat (limited to 'shells')
-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"; \