summaryrefslogtreecommitdiffstats
path: root/package/gnuconfig/testsuite/uname.in
blob: d44d15f041004126356ac4668936aedce66e2ccd (plain)
1
2
3
4
5
6
7
8
9
#!/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"