summaryrefslogtreecommitdiff
path: root/sys/src/ape
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-10-26 20:22:01 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-10-26 20:22:01 +0200
commit4a9f900726e530e55506974b8ec718125f78a61b (patch)
treea2cada0148d4408f76c9331339ee2881d6d23e80 /sys/src/ape
parent0d378e905e4df6266d9fc9243e7ed735e12d839b (diff)
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.
Diffstat (limited to 'sys/src/ape')
-rwxr-xr-xsys/src/ape/lib/ap/syscall/genall2
-rw-r--r--sys/src/ape/lib/ap/syscall/mkfile2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/ape/lib/ap/syscall/genall b/sys/src/ape/lib/ap/syscall/genall
index 5aa992b95..a19d03bdb 100755
--- a/sys/src/ape/lib/ap/syscall/genall
+++ b/sys/src/ape/lib/ap/syscall/genall
@@ -10,7 +10,7 @@ SYS=`{sed '/^#define._/d; s/#define.([A-Z0-9_]*).*/\1/' $SYSH}
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
diff --git a/sys/src/ape/lib/ap/syscall/mkfile b/sys/src/ape/lib/ap/syscall/mkfile
index 080839d9a..6366b212d 100644
--- a/sys/src/ape/lib/ap/syscall/mkfile
+++ b/sys/src/ape/lib/ap/syscall/mkfile
@@ -4,7 +4,7 @@ NPROC=1
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.