always use the elf wrapper around the target gcc for kernel code when compiling stand...
[AROS.git] / scripts / uname.in
blob277c3cc67d22902a12962c4f98588d1d51161c21
1 #!/bin/sh
3 # print usage
4 usage() {
5 echo "Usage: $( basename "$0" ) [options] [ -- ] command"
6 echo "Options:"
7 echo " -s, --kernel-name"
8 echo " -n, --nodename"
9 echo " -r, --kernel-release"
10 echo " -v, --kernel-version"
11 echo " -m, --machine"
12 echo " -p, --processor"
13 echo " -i, --hardware-platform"
14 echo " -o, --operating-system"
15 echo " --help"
16 exit 0
19 [ $# -eq 0 ] && echo -n "AROS"
21 for arg in "$@"; do
22 case "$arg" in
23 -s|--kernel-name) echo -n "AROS";;
24 -n|--nodename) echo -n "localhost";;
25 -r|--kernel-release) echo -n "1";;
26 -v|--kernel-version) echo -n "0";;
27 -m|--machine) echo -n "@aros_target_cpu@";;
28 -p|--processor) echo -n "@aros_target_cpu@";;
29 -i|--hardware-platform) echo -n "@aros_target_cpu@";;
30 -o|--operating-system) echo -n "AmigaOS/AROS";;
31 --help) usage;;
32 esac
33 done
35 echo