Skip to content

Commit 6fb8a3d

Browse files
committed
plan9: refactor building scripts
1 parent 177dca4 commit 6fb8a3d

File tree

5 files changed

+41
-349
lines changed

5 files changed

+41
-349
lines changed

autogen.rc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/rc
22

3+
flag e +
34
rfork ne
45

5-
./update.rc
6-
ape/patch -p0 <plan9/crypto.patch
7-
ape/patch -p0 <plan9/ssl.patch
8-
ape/patch -p0 <plan9/tls.patch
9-
ape/patch -p0 <plan9/apps.patch
10-
11-
bind -a /$cputype/bin/ape /bin
12-
./gen-mkfiles-all.sh
6+
if(! test -f /bin/sh)
7+
bind -b /$cputype/bin/ape /bin
8+
./update.sh
9+
./gen-mkfile.sh lib crypto/Makefile.am
10+
./gen-mkfile.sh lib ssl/Makefile.am
11+
./gen-mkfile.sh lib tls/Makefile.am
12+
./gen-mkfile.sh bin apps/openssl/Makefile.am
13+
./gen-mkfile.sh include include/Makefile.am

gen-mkfile.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ if [ $# -ne 3 -a $# -ne 2 ]; then
77
exit 2
88
fi
99

10-
# Plan 9 don't have dirname(1), instead use basename -d
11-
if ! type dirname >/dev/null 2>&1
12-
then
13-
dirname() { basename -d "$@"; }
14-
fi
15-
1610
target=$1
1711
wdir=`dirname $2`
1812
recipe=`basename $2`

gen-mkfiles-all.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

update.rc

Lines changed: 0 additions & 317 deletions
This file was deleted.

0 commit comments

Comments
 (0)