Awk for version number.
This commit is contained in:
parent
7187e60cbe
commit
5d63a6687f
2 changed files with 2 additions and 2 deletions
|
@ -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 = .
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue