Commit 1cf94605 by Richard Stallman

(mainversion): New variable.

(distdir): Use mainversion when verifying gcc.texi has been updated.

From-SVN: r5941
parent 7b1a0c14
...@@ -135,6 +135,7 @@ target= ... `configure' substitutes actual target name here. ...@@ -135,6 +135,7 @@ target= ... `configure' substitutes actual target name here.
xmake_file= ... `configure' substitutes actual x- file name here. xmake_file= ... `configure' substitutes actual x- file name here.
tmake_file= ... `configure' substitutes actual t- file name here. tmake_file= ... `configure' substitutes actual t- file name here.
version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c` version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
# Directory where sources are, from where we are. # Directory where sources are, from where we are.
srcdir = . srcdir = .
...@@ -2009,7 +2010,7 @@ gcc.xtar: distdir ...@@ -2009,7 +2010,7 @@ gcc.xtar: distdir
distdir: doc $(srcdir)/INSTALL c-parse.y objc-parse.y cp-parse.y \ distdir: doc $(srcdir)/INSTALL c-parse.y objc-parse.y cp-parse.y \
c-parse.c cp-parse.c objc-parse.c cexp.c c-parse.c cp-parse.c objc-parse.c cexp.c
if grep -s "for version ${version}" gcc.texi; \ if grep -s "for version ${mainversion}" gcc.texi; \
then true; \ then true; \
else echo "You must update the version number in \`gcc.texi'"; sleep 10;\ else echo "You must update the version number in \`gcc.texi'"; sleep 10;\
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment