From 5d63a6687f3c6c025ef563bb3695b2f08a1f959c Mon Sep 17 00:00:00 2001 From: "K. Richard Pixley" Date: Wed, 12 Jun 1991 21:34:45 +0000 Subject: [PATCH] Awk for version number. --- gas/Makefile.in | 2 +- ld/Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gas/Makefile.in b/gas/Makefile.in index f812ede359c..21d832234fa 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 2c0aa7060e3..6dfab10388c 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 -- 2.30.2