zsh-workers
 help / color / mirror / code / Atom feed
* mkbltnmlst.sh sources directories.
@ 1999-12-17 13:23 Tanaka Akira
  1999-12-17 13:32 ` Zefram
  0 siblings, 1 reply; 3+ messages in thread
From: Tanaka Akira @ 1999-12-17 13:23 UTC (permalink / raw)
  To: zsh-workers

mkbltnmlst.sh sources directories as:

make[1]: Entering directory `/home/akr/src/zsh/cvs/zsh/Src'
srcdir='.' MODBINS='modules-bltin' \
XMODCF='./xmods.conf' /bin/sh ./mkbltnmlst.sh bltinmods.list
./mkbltnmlst.sh: .: ./../: is a directory
...

Note that this result is on linux.  On Solaris 7, /bin/sh actualy
sources a directory and generates messy errors:

srcdir='.' MODBINS='modules-bltin' \
XMODCF='./xmods.conf' /bin/sh ./mkbltnmlst.sh bltinmods.list
./mkbltnmlst.sh: ^Dku^L^A.^A^F^[^L^B..^Dzl^L^CCVS^Dkv^X^MChangeLog.3.0^Dkw^T: not found
./mkbltnmlst.sh: .cvsignore^Dkx^T: not found
...

Is this fix correct?

Index: mkbltnmlst.sh
===================================================================
RCS file: /projects/zsh/zsh/Src/mkbltnmlst.sh,v
retrieving revision 1.1.1.11
diff -u -r1.1.1.11 mkbltnmlst.sh
--- mkbltnmlst.sh	1999/12/16 14:26:33	1.1.1.11
+++ mkbltnmlst.sh	1999/12/17 13:15:14
@@ -34,6 +34,7 @@
     eval "modfile=\$modfile_$q_x_mod"
     unset moddeps autobins autoinfixconds autoprefixconds autoparams
     unset automathfuncs
+    if [ -f $srcdir/../$modfile ]; then
     . $srcdir/../$modfile
     for bin in $autobins; do
 	echo "    add_autobin(\"$bin\", \"$x_mod\");"
@@ -53,6 +54,7 @@
     for dep in $moddeps; do
 	echo "    add_dep(\"$x_mod\", \"$dep\");"
     done
+    fi
     test "x$linked" = xno && echo "#endif"
 done
 
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-12-17 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-17 13:23 mkbltnmlst.sh sources directories Tanaka Akira
1999-12-17 13:32 ` Zefram
1999-12-17 13:45   ` Tanaka Akira

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).