if tcfn=a.exe pass mksh.exe, not mksh, to check.pl
also spotted by RT
This commit is contained in:
parent
8a8535b321
commit
e1fa966570
18
Build.sh
18
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.503 2012/01/03 00:58:06 tg Exp $'
|
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.504 2012/01/03 01:30:16 tg Exp $'
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||||
# 2011, 2012
|
# 2011, 2012
|
||||||
@ -1261,7 +1261,7 @@ else
|
|||||||
#define EXTERN
|
#define EXTERN
|
||||||
#define MKSH_INCLUDES_ONLY
|
#define MKSH_INCLUDES_ONLY
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.503 2012/01/03 00:58:06 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.504 2012/01/03 01:30:16 tg Exp $");
|
||||||
int main(void) { printf("Hello, World!\n"); return (0); }
|
int main(void) { printf("Hello, World!\n"); return (0); }
|
||||||
EOF
|
EOF
|
||||||
case $cm in
|
case $cm in
|
||||||
@ -1682,15 +1682,19 @@ $e $bi$me: Finished configuration testing, now producing output.$ao
|
|||||||
files=
|
files=
|
||||||
objs=
|
objs=
|
||||||
sp=
|
sp=
|
||||||
|
case $tcfn in
|
||||||
|
a.exe) mkshexe=mksh.exe ;;
|
||||||
|
*) mkshexe=mksh ;;
|
||||||
|
esac
|
||||||
case $curdir in
|
case $curdir in
|
||||||
*\ *) echo "#!./mksh" >test.sh ;;
|
*\ *) echo "#!./$mkshexe" >test.sh ;;
|
||||||
*) echo "#!$curdir/mksh" >test.sh ;;
|
*) echo "#!$curdir/$mkshexe" >test.sh ;;
|
||||||
esac
|
esac
|
||||||
cat >>test.sh <<-EOF
|
cat >>test.sh <<-EOF
|
||||||
LC_ALL=C PATH='$PATH'; export LC_ALL PATH
|
LC_ALL=C PATH='$PATH'; export LC_ALL PATH
|
||||||
test -n "\$KSH_VERSION" || exit 1
|
test -n "\$KSH_VERSION" || exit 1
|
||||||
set -A check_categories -- $check_categories
|
set -A check_categories -- $check_categories
|
||||||
pflag='$curdir/mksh'
|
pflag='$curdir/$mkshexe'
|
||||||
sflag='$srcdir/check.t'
|
sflag='$srcdir/check.t'
|
||||||
usee=0 Pflag=0 uset=0 vflag=0 xflag=0
|
usee=0 Pflag=0 uset=0 vflag=0 xflag=0
|
||||||
while getopts "C:e:fPp:s:t:v" ch; do case \$ch {
|
while getopts "C:e:fPp:s:t:v" ch; do case \$ch {
|
||||||
@ -1786,10 +1790,6 @@ dragonegg|llvm)
|
|||||||
lobjs=$objs
|
lobjs=$objs
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
case $tcfn in
|
|
||||||
a.exe) mkshexe=mksh.exe ;;
|
|
||||||
*) mkshexe=mksh ;;
|
|
||||||
esac
|
|
||||||
echo tcfn=$mkshexe >>Rebuild.sh
|
echo tcfn=$mkshexe >>Rebuild.sh
|
||||||
echo "$CC $CFLAGS $LDFLAGS -o \$tcfn $lobjs $LIBS $ccpr" >>Rebuild.sh
|
echo "$CC $CFLAGS $LDFLAGS -o \$tcfn $lobjs $LIBS $ccpr" >>Rebuild.sh
|
||||||
echo 'test -f $tcfn || exit 1; size $tcfn' >>Rebuild.sh
|
echo 'test -f $tcfn || exit 1; size $tcfn' >>Rebuild.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user