add (c) and "fix" build on GNU systems (tested)

add MirOS to version
This commit is contained in:
tg 2004-03-21 01:51:26 +00:00
parent 847035b24e
commit 9fe69adfe8
2 changed files with 26 additions and 5 deletions

View File

@ -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 <x86@ePost.de>
#
# 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.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
${CC:-gcc} -O2 -fomit-frame-pointer -static $CFLAGS -o ksh *.c
tbl <ksh.1tbl | nroff -mandoc -Tascii >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"

View File

@ -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 $";