aboutsummaryrefslogtreecommitdiff
path: root/extra/nawk/build
blob: 3b6e23725f25649b82dd85d570844596db778e1b (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh -e

make CFLAGS="$CFLAGS -static"
clinst -Dm755 "a.out" "$1/usr/bin/nawk"
ln -s /usr/bin/nawk "$1/usr/bin/awk"

mv awk.1 nawk.1
clman -d "$1" nawk.1
ln -s nawk.1 "$1/usr/share/man/man1/awk.1"