From 9fe69adfe8b1fac525234790831cacc0712d29cf Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 21 Mar 2004 01:51:26 +0000 Subject: [PATCH] add (c) and "fix" build on GNU systems (tested) add MirOS to version --- BuildGNU.sh | 26 +++++++++++++++++++++++--- version.c | 5 +++-- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/BuildGNU.sh b/BuildGNU.sh index 0685d84..c3b4015 100644 --- a/BuildGNU.sh +++ b/BuildGNU.sh @@ -1,13 +1,33 @@ #!/bin/sh +# $MirBSD: BuildGNU.sh,v 1.2 2004/03/21 01:51:25 tg Exp $ +#- +# Copyright (c) 2004 +# Thorsten "mirabile" Glaser +# +# Subject to these terms, everybody who obtained a copy of this work +# is hereby permitted to deal in the work without restriction inclu- +# ding without limitation the rights to use, distribute, sell, modi- +# fy, publically perform, give away, merge or sublicence it provided +# this notice is kept and the authors and contributors are given due +# credit in derivates or accompanying documents. +# +# This work is provided by its developers (authors and contributors) +# "as is" and without any warranties whatsoever, express or implied, +# to the maximum extent permitted by applicable law; in no event may +# developers be held liable for damage caused, directly or indirect- +# ly, but not by a developer's malice intent, even if advised of the +# possibility of such damage. +#- # Build the mirbsdksh on GNU operating systems if [ -e strlcpy.c -a -e strlcat.c ]; then + /bin/sh ./configure /bin/sh ./siglist.sh "gcc -E -DKSH -DHAVE_CONFIG_H -I." \ siglist.out /bin/sh ./emacs-gen.sh emacs.c >emacs.out - gcc -O2 -fomit-frame-pointer -static -o ksh *.c - tbl ksh.cat1 - strip --strip-all -R .note -R .comment ksh + ${CC:-gcc} -O2 -fomit-frame-pointer -static $CFLAGS -o ksh *.c + tbl ksh.cat1 + strip --strip-unneeded --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" diff --git a/version.c b/version.c index 12945d9..9995730 100644 --- a/version.c +++ b/version.c @@ -1,4 +1,5 @@ -/* $OpenBSD: version.c,v 1.12 1999/07/14 13:37:24 millert Exp $ */ +/* $MirBSD: version.c,v 1.2 2004/03/21 01:51:26 tg Exp $ */ +/* $OpenBSD: version.c,v 1.12 1999/07/14 13:37:24 millert Exp $ */ /* * value of $KSH_VERSION (or $SH_VERSION) @@ -7,4 +8,4 @@ #include "sh.h" const char ksh_version [] = - "@(#)PD KSH v5.2.14 99/07/13.2"; + "@(#)PD KSH v5.2.14 99/07/13.2 MirOS $Revision: 1.2 $";