diff options
author | agc <agc> | 1999-03-11 08:24:21 +0000 |
---|---|---|
committer | agc <agc> | 1999-03-11 08:24:21 +0000 |
commit | ae18a56758076f4d28b519a10df692f04c7c7f4f (patch) | |
tree | f2255b09e8edf878783faae0fd2bfa25a3cd4cb5 /shells/tcsh | |
parent | d982ac2c32c958d3a43df0256535ca4e01f000bd (diff) | |
download | pkgsrc-ae18a56758076f4d28b519a10df692f04c7c7f4f.tar.gz |
Simplify the shell scripting here, so that this package works on Solaris.
Diffstat (limited to 'shells/tcsh')
-rw-r--r-- | shells/tcsh/Makefile | 11 |
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"; \ |