ref: 4a9f900726e530e55506974b8ec718125f78a61b
parent: 0d378e905e4df6266d9fc9243e7ed735e12d839b
author: cinap_lenrek <[email protected]>
date: Sat Oct 26 16:22:01 EDT 2013
mkfiles: do not rely on path containing the . element when executing generated binaries and helper scripts, always execute them as ./name instead of relying that path contsins the dot.
--- a/sys/src/ape/lib/ap/syscall/genall
+++ b/sys/src/ape/lib/ap/syscall/genall
@@ -10,7 +10,7 @@
for(I in $SYS) {
i=_^$I
n=`{sed -n '/[ ]'$I'[ ]/s/.* //p' $SYSH}
- gencall
+ ./gencall
}
ar vu /$objtype/lib/ape/libap.a *.$O
rm -f *.$O *.s
--- a/sys/src/ape/lib/ap/syscall/mkfile
+++ b/sys/src/ape/lib/ap/syscall/mkfile
@@ -4,7 +4,7 @@
all:V: install
install:V: genall gencall
- genall
+ ./genall
# ugh. sources's build process can't hack absolute path names.
# we're in /sys/src/ape/lib/ap/syscall.
--- a/sys/src/cmd/aux/kbdfs/mkfile
+++ b/sys/src/cmd/aux/kbdfs/mkfile
@@ -13,4 +13,4 @@
@{objtype=$cputype mk -f $prereq $target}
latin1.h: mklatin.$cputype /lib/keyboard
- $prereq >$target
+ ./mklatin.$cputype /lib/keyboard >$target
--- a/sys/src/cmd/jpg/mkfile
+++ b/sys/src/cmd/jpg/mkfile
@@ -68,12 +68,12 @@
ycbcr.h: rgbycc.c
$c^c rgbycc.c
$c^l -o $c.rgbycc rgbycc.$c
- $c.rgbycc > ycbcr.h
+ ./$c.rgbycc > ycbcr.h
rgbv.h: rgbrgbv.c
$c^c rgbrgbv.c
$c^l -o $c.rgbrgbv rgbrgbv.$c
- $c.rgbrgbv > rgbv.h
+ ./$c.rgbrgbv > rgbv.h
nuke:V: nuke-headers
--- a/sys/src/cmd/mkfile
+++ b/sys/src/cmd/mkfile
@@ -60,7 +60,7 @@
%.safeinstall: $O.% $cpuobjtype._cp
test -e $BIN/$stem && mv $BIN/$stem $BIN/_$stem
- $cpuobjtype._cp $O.$stem $BIN/$stem
+ ./$cpuobjtype._cp $O.$stem $BIN/$stem
%.safeinstallall:
for(objtype in $CPUS)
@@ -68,7 +68,7 @@
mk $stem.clean
$BIN/%: $O.% $cpuobjtype._cp
- $cpuobjtype._cp $O.$stem $BIN/$stem
+ ./$cpuobjtype._cp $O.$stem $BIN/$stem
%.directories:V:
for(i in $DIRS) @{
--- a/sys/src/cmd/nusb/disk/mkfile
+++ b/sys/src/cmd/nusb/disk/mkfile
@@ -20,5 +20,5 @@
CLEANFILES=scsierrs.c
scsierrs.c: /sys/lib/scsicodes mkscsierrs
- mkscsierrs >scsierrs.c
+ ./mkscsierrs >scsierrs.c
--- a/sys/src/cmd/spell/mkfile
+++ b/sys/src/cmd/spell/mkfile
@@ -16,10 +16,10 @@
for (i in $prereq) cp $i /sys/lib/$i
brspell: $cpuobjtype.pcode list british local stop
- $cpuobjtype.pcode list british local stop >$target
+ ./$cpuobjtype.pcode list british local stop >$target
amspell: $cpuobjtype.pcode list american local stop
- $cpuobjtype.pcode list american local stop >$target
+ ./$cpuobjtype.pcode list american local stop >$target
$cpuobjtype.pcode: pcode.c $HFILES
objtype=$cputype
--- a/sys/src/cmd/tcs/mkfile
+++ b/sys/src/cmd/tcs/mkfile
@@ -38,7 +38,7 @@
hget http://www.iana.org/assignments/character-sets | sed 's/ //' >$target
alias.h: charsets.awk charsets.txt alias.txt
- charsets.awk charsets.txt alias.txt >$target
+ ./charsets.awk charsets.txt alias.txt >$target
clean:V:
rm -f *.[$OS] [$OS].out y.tab.? y.debug y.output alias.h $TARG
--- a/sys/src/games/blabs/mkfile
+++ b/sys/src/games/blabs/mkfile
@@ -23,7 +23,7 @@
</sys/src/cmd/mkone
%.bits:
- mkface $stem
+ ./mkface $stem
blabs.$O: $FACES