* 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
* Re: mkbltnmlst.sh sources directories.
1999-12-17 13:23 mkbltnmlst.sh sources directories Tanaka Akira
@ 1999-12-17 13:32 ` Zefram
1999-12-17 13:45 ` Tanaka Akira
0 siblings, 1 reply; 3+ messages in thread
From: Zefram @ 1999-12-17 13:32 UTC (permalink / raw)
To: Tanaka Akira; +Cc: zsh-workers
Tanaka Akira wrote:
>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
This shouldn't be happening.
>+ if [ -f $srcdir/../$modfile ]; then
> . $srcdir/../$modfile
Clearly, $modfile is empty here. That indicates that xmods.conf lists a
module that doesn't exist (or at least isn't in the module index). Do you
perhaps need to do a "make prep", having applied my module names patch?
Your patch shouldn't be used, I think. $modfile being blank here is an
error; if it is to be detected, then an error message should be generated.
-zefram
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mkbltnmlst.sh sources directories.
1999-12-17 13:32 ` Zefram
@ 1999-12-17 13:45 ` Tanaka Akira
0 siblings, 0 replies; 3+ messages in thread
From: Tanaka Akira @ 1999-12-17 13:45 UTC (permalink / raw)
To: zsh-workers
In article <E11yxV5-0007vV-00@crucigera.fysh.org>,
Zefram <zefram@fysh.org> writes:
> This shouldn't be happening.
I see.
> Clearly, $modfile is empty here. That indicates that xmods.conf lists a
> module that doesn't exist (or at least isn't in the module index). Do you
> perhaps need to do a "make prep", having applied my module names patch?
Yes. $modfile is empty because xmods.conf has `cap' by 9084 and
modules.index has no `modfile_cap=...'.
Do I miss some patches?
> Your patch shouldn't be used, I think. $modfile being blank here is an
> error; if it is to be detected, then an error message should be generated.
Ok. I reverted my patch.
--
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).