2021-05-10 12:55:12 -04:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2021-05-11 00:07:37 -04:00
|
|
|
# Fix a compile-time bug.
|
2021-05-10 12:55:12 -04:00
|
|
|
export CFLAGS="$CFLAGS -fcommon"
|
2021-05-11 00:07:37 -04:00
|
|
|
|
|
|
|
# Set what utils to make.
|
2021-05-10 12:55:12 -04:00
|
|
|
cp makefile.mid ./Makefile
|
|
|
|
|
|
|
|
make PREFIX=/usr
|
|
|
|
make PREFIX=/usr DESTDIR="$1" install
|
|
|
|
|
|
|
|
# Prevent 9yacc from actually installing
|
|
|
|
for file in /usr/bin/yacc /usr/yacc /usr/share/man/man1/yacc.1
|
2021-05-11 00:07:37 -04:00
|
|
|
do
|
|
|
|
rm -rf "$1$file"
|
2021-05-10 12:55:12 -04:00
|
|
|
done
|