testsuite/config-guess.sh: Incorporate uname.in as a heredoc.

testsuite/uname.in: Remove.
This commit is contained in:
Ben Elliston 2012-07-30 12:48:51 +10:00
parent 70fe2ef011
commit 7886f29c82
3 changed files with 13 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2012-07-30 Ben Elliston <bje@gnu.org>
* testsuite/config-guess.sh: Incorporate uname.in as a heredoc.
* testsuite/uname.in: Remove.
2012-07-29 Ben Elliston <bje@gnu.org>
* uname: Remove.

View File

@ -17,7 +17,14 @@ run_config_guess ()
-e "s,@MACHINE@,$machine," \
-e "s,@RELEASE@,$release," \
-e "s,@SYSTEM@,$system," \
-e "s,@VERSION@,$version," < uname.in > uname
-e "s,@VERSION@,$version," > uname << EOF
[ \$# -ne 1 ] && exec sh \$0 -s
[ \$1 = -m ] && echo "@MACHINE@" && exit 0
[ \$1 = -r ] && echo "@RELEASE@" && exit 0
[ \$1 = -s ] && echo "@SYSTEM@" && exit 0
[ \$1 = -v ] && echo "@VERSION@" && exit 0
[ \$1 = -p ] && echo "Pentium III(TM)-ISA/PCI"
EOF
chmod +x uname
output=`sh ../config.guess 2>/dev/null`
if test $? != 0 ; then

View File

@ -1,9 +0,0 @@
#!/bin/sh
# uname(1) simulator, inspired by Pavel Roskin.
[ $# -ne 1 ] && exec sh $0 -s
[ $1 = -m ] && echo "@MACHINE@" && exit 0
[ $1 = -r ] && echo "@RELEASE@" && exit 0
[ $1 = -s ] && echo "@SYSTEM@" && exit 0
[ $1 = -v ] && echo "@VERSION@" && exit 0
[ $1 = -p ] && echo "Pentium III(TM)-ISA/PCI"