aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1993-01-20 02:22:45 +0000
committerPer Bothner <per@bothner.com>1993-01-20 02:22:45 +0000
commitbf2e56058ef61a31545a831b977316d11fd2cb46 (patch)
tree23677a204aabca1af64f593ba738c14d367ed6e6
parentcc83d8b091c8f4e467d92c5e6175f7f26dced4ce (diff)
downloadgdb-bf2e56058ef61a31545a831b977316d11fd2cb46.zip
gdb-bf2e56058ef61a31545a831b977316d11fd2cb46.tar.gz
gdb-bf2e56058ef61a31545a831b977316d11fd2cb46.tar.bz2
Minor improvements
-rwxr-xr-xguess-systype12
1 files changed, 5 insertions, 7 deletions
diff --git a/guess-systype b/guess-systype
index 3d2bbce..86f2885 100755
--- a/guess-systype
+++ b/guess-systype
@@ -39,27 +39,25 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
exit 0 ;;
esac
-# uname didn't exit or help; try another approach.
+echo '(No uname command or uname output not recognized.)' 1>&2
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
cat >dummy.c <<EOF
main()
{
#if defined (sony)
#if defined (MIPSEB)
- exit(1);
#else
- printf("m68k-sony-newsos\n");
+ printf("m68k-sony-newsos\n"); exit(0);
#endif
#endif
+ exit (1);
}
EOF
${CC-cc} dummy.c -o dummy && dummy && rm dummy.c dummy && exit 0
rm -f dummy.c dummy
-echo "(No uname comamnd or uname output not recognized." 1>&2
-echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
-echo "Unable to guess system type)" 1>&2
+echo '(Unable to guess system type)' 1>&2
exit 1
-