aboutsummaryrefslogtreecommitdiff
path: root/extra/nawk/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-08-09 21:20:30 +0300
committerCem Keylan <cem@ckyln.com>2021-08-09 21:20:30 +0300
commit3d4817ed115e1f24fc691e4cffd3704db57ae19a (patch)
tree7849f01ba2c20e3f9585f9f6f0d7e82b31328f8f /extra/nawk/build
parentac98606dc914ca3674a62c67779356a11f582ce0 (diff)
downloadrepository-3d4817ed115e1f24fc691e4cffd3704db57ae19a.tar.gz
nawk: use byacc
Diffstat (limited to 'extra/nawk/build')
-rwxr-xr-xextra/nawk/build2
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/nawk/build b/extra/nawk/build
index 3b6e2372..a5c7444d 100755
--- a/extra/nawk/build
+++ b/extra/nawk/build
@@ -1,5 +1,7 @@
#!/bin/sh -e
+yacc -o awkgram.tab.c -H awkgram.tab.h awkgram.y
+
make CFLAGS="$CFLAGS -static"
clinst -Dm755 "a.out" "$1/usr/bin/nawk"
ln -s /usr/bin/nawk "$1/usr/bin/awk"