aboutsummaryrefslogtreecommitdiff
path: root/extra/nawk/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/nawk/build')
-rwxr-xr-xextra/nawk/build8
1 files changed, 8 insertions, 0 deletions
diff --git a/extra/nawk/build b/extra/nawk/build
new file mode 100755
index 00000000..7da2a299
--- /dev/null
+++ b/extra/nawk/build
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+make CFLAGS="$CFLAGS -static"
+install -Dm755 "a.out" "$1/usr/bin/nawk"
+ln -s /usr/bin/nawk "$1/usr/bin/awk"
+
+install -Dm644 "awk.1" "$1/usr/share/man/man1/nawk.1"
+ln -s nawk.1 "$1/usr/share/man/man1/awk.1"