aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-06-12 21:34:45 +0000
committerK. Richard Pixley <rich@cygnus>1991-06-12 21:34:45 +0000
commit5d63a6687f3c6c025ef563bb3695b2f08a1f959c (patch)
treeb70d9f86bc7ddf5e5dcb6d0de3e0b1d1c411bfbd
parent7187e60cbe6f87aaf2d0e3b81abd9b23cb14b127 (diff)
downloadgdb-5d63a6687f3c6c025ef563bb3695b2f08a1f959c.zip
gdb-5d63a6687f3c6c025ef563bb3695b2f08a1f959c.tar.gz
gdb-5d63a6687f3c6c025ef563bb3695b2f08a1f959c.tar.bz2
Awk for version number.
-rw-r--r--gas/Makefile.in2
-rw-r--r--ld/Makefile.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/gas/Makefile.in b/gas/Makefile.in
index f812ede..21d8322 100644
--- a/gas/Makefile.in
+++ b/gas/Makefile.in
@@ -59,7 +59,7 @@ CCLIBFLAGS = -O
# Version of ar to use when compiling gnulib.
OLDAR = ar
-version=`$(srcdir)/../gcc$(subdir)/gcc -dumpversion`
+version=`awk '{print substr ($$4, 2, length ($$4) - 3); }' $(srcdir)/version.c`
# Directory where sources are, from where we are.
srcdir = .
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 2c0aa70..6dfab10 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -8,7 +8,7 @@ srcdir = .
destdir = /usr/local
-version=`$(srcdir)/../gcc$(subdir)/gcc -dumpversion`
+version=`awk '{print substr ($$4, 2, length ($$4) - 3); }' $(srcdir)/../gcc/version.c`
prefix = $(destdir)
bindir = $(prefix)/bin
libdir = $(prefix)/lib