aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid D. Zuhn <zoo@cygnus>1992-05-31 04:04:03 +0000
committerDavid D. Zuhn <zoo@cygnus>1992-05-31 04:04:03 +0000
commit07f1d175cfde673f67d83400224540b9377645fa (patch)
tree5c60bd177f0cc9a1651168ed74de583e92925099
parent48079d66da3e5f0267a6e00e5ad8f7839243d948 (diff)
downloadfsf-binutils-gdb-07f1d175cfde673f67d83400224540b9377645fa.zip
fsf-binutils-gdb-07f1d175cfde673f67d83400224540b9377645fa.tar.gz
fsf-binutils-gdb-07f1d175cfde673f67d83400224540b9377645fa.tar.bz2
better error testing on perverse cases (eg, ./config.sub -sun3)
-rw-r--r--ChangeLog5
-rwxr-xr-xconfig.sub2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 54b79f8..8411701 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat May 30 21:01:06 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
+
+ * config.sub (basic_machine): fix sed so that '-foo' isn't
+ completely substituted out while .+'-foo' loses the '-foo'
+
Thu May 28 19:48:35 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
* .Sanitize: Add flex to the list of keepers. flex is needed to
diff --git a/config.sub b/config.sub
index 61f73cd..dba56e2 100755
--- a/config.sub
+++ b/config.sub
@@ -46,7 +46,7 @@ case $1 in
esac
# Separate what the user gave into CPU-COMPANY and OS (if any).
-basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+basic_machine=`echo $1 | sed 's/-[^-]+$//'`
if [ $basic_machine != $1 ]
then os=`echo $1 | sed 's/.*-/-/'`
else os=; fi