* use -mdoc macros directly
* use test instead of [ (for portability to slowlaris) constantly * improve stripping process * try basic stripping even on weird OSes
This commit is contained in:
parent
aa77268b4f
commit
aa12424a89
18
Build.sh
18
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $MirBSD: Build.sh,v 1.5 2004/05/24 20:17:50 tg Exp $
|
# $MirBSD: Build.sh,v 1.6 2004/05/25 22:19:30 tg Exp $
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2004
|
# Copyright (c) 2004
|
||||||
# Thorsten Glaser <x86@ePost.de>
|
# Thorsten Glaser <x86@ePost.de>
|
||||||
@ -44,16 +44,22 @@ if test -e strlfun.c; then
|
|||||||
$CC $COPTS $CFLAGS $CPPFLAGS $LDFLAGS -o ksh.unstripped *.c
|
$CC $COPTS $CFLAGS $CPPFLAGS $LDFLAGS -o ksh.unstripped *.c
|
||||||
echo "Finalizing..."
|
echo "Finalizing..."
|
||||||
tbl <ksh.1tbl >ksh.1
|
tbl <ksh.1tbl >ksh.1
|
||||||
nroff -man -Tascii <ksh.1 >ksh.cat1
|
nroff -mdoc -Tascii <ksh.1 >ksh.cat1
|
||||||
if [ -z "$WEIRD_OS" ]; then
|
cp ksh.unstripped ksh
|
||||||
cp ksh.unstripped ksh
|
if test -z "$WEIRD_OS"; then
|
||||||
strip -R .note -R .comment -R .rel.dyn -R .sbss \
|
strip -R .note -R .comment -R .rel.dyn -R .sbss \
|
||||||
--strip-unneeded --strip-all ksh \
|
--strip-unneeded --strip-all ksh \
|
||||||
|| strip ksh || rm -f ksh
|
|| strip ksh || rm -f ksh
|
||||||
else
|
else
|
||||||
echo "Remember to strip the ksh binary!"
|
echo "Trying to strip..."
|
||||||
|
strip ksh || \
|
||||||
|
echo "Remember to strip the ksh binary yourself!"
|
||||||
|
fi
|
||||||
|
if test -e ksh; then
|
||||||
|
size ksh
|
||||||
|
else
|
||||||
|
size ksh.unstripped
|
||||||
fi
|
fi
|
||||||
size ksh
|
|
||||||
echo "done."
|
echo "done."
|
||||||
echo ""
|
echo ""
|
||||||
echo "If you want to test mirbsdksh:"
|
echo "If you want to test mirbsdksh:"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user