mksh/BuildGNU.sh
tg 20c2ca1817 untested script to build mirbsdksh on about every current GNU/Linux
the principle worked today at work. I'm pondering about config.h and
supported features, though; also, some more sections could be stripped.
2004-03-19 22:52:46 +00:00

16 lines
555 B
Bash

#!/bin/sh
# Build the mirbsdksh on GNU operating systems
if [ -e strlcpy.c -a -e strlcat.c ]; then
/bin/sh ./siglist.sh "gcc -E -DKSH -DHAVE_CONFIG_H -I." \
<siglist.in >siglist.out
/bin/sh ./emacs-gen.sh emacs.c >emacs.out
gcc -O2 -fomit-frame-pointer -static -o ksh *.c
tbl <ksh.1tbl | eqn -Tascii | nroff -mandoc -Tascii >ksh.cat1
strip --strip-all -R .note -R .comment ksh
else
echo "Copy strlcpy.c and strlcat.c here first, and"
echo "optionally kill Ulrich Drepper & co. for not"
echo "including it into your broken libc imitation"
fi