mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-29 02:26:36 +12:00
testsuite/config-guess.sh: Incorporate uname.in as a heredoc.
testsuite/uname.in: Remove.
This commit is contained in:
parent
70fe2ef011
commit
7886f29c82
@ -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>
|
2012-07-29 Ben Elliston <bje@gnu.org>
|
||||||
|
|
||||||
* uname: Remove.
|
* uname: Remove.
|
||||||
|
@ -17,7 +17,14 @@ run_config_guess ()
|
|||||||
-e "s,@MACHINE@,$machine," \
|
-e "s,@MACHINE@,$machine," \
|
||||||
-e "s,@RELEASE@,$release," \
|
-e "s,@RELEASE@,$release," \
|
||||||
-e "s,@SYSTEM@,$system," \
|
-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
|
chmod +x uname
|
||||||
output=`sh ../config.guess 2>/dev/null`
|
output=`sh ../config.guess 2>/dev/null`
|
||||||
if test $? != 0 ; then
|
if test $? != 0 ; then
|
||||||
|
@ -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"
|
|
Loading…
x
Reference in New Issue
Block a user