From aa12424a8915eb9c8fc07710b2cf5966965d4e5c Mon Sep 17 00:00:00 2001 From: tg Date: Tue, 25 May 2004 22:19:30 +0000 Subject: [PATCH] * use -mdoc macros directly * use test instead of [ (for portability to slowlaris) constantly * improve stripping process * try basic stripping even on weird OSes --- Build.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Build.sh b/Build.sh index 917b57d..417acb8 100644 --- a/Build.sh +++ b/Build.sh @@ -1,5 +1,5 @@ #!/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 # Thorsten Glaser @@ -44,16 +44,22 @@ if test -e strlfun.c; then $CC $COPTS $CFLAGS $CPPFLAGS $LDFLAGS -o ksh.unstripped *.c echo "Finalizing..." tbl ksh.1 - nroff -man -Tascii ksh.cat1 - if [ -z "$WEIRD_OS" ]; then - cp ksh.unstripped ksh + nroff -mdoc -Tascii ksh.cat1 + cp ksh.unstripped ksh + if test -z "$WEIRD_OS"; then strip -R .note -R .comment -R .rel.dyn -R .sbss \ --strip-unneeded --strip-all ksh \ || strip ksh || rm -f ksh 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 - size ksh echo "done." echo "" echo "If you want to test mirbsdksh:"