This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RFD: maintainer-scripts/update_version also doing libstdc++-v3


We'd like the version/datestamp defined in v3's c++config to also be
regularly updated.  But the pattern searched for in update_version requires
the version be inside a character string.

libstdc++ uses a #define instead, which doesn't match that pattern.
This patch is just to demonstrate what I need to do with minimal typing
on my part.  It's not for approval.

We can do something ugly, like the patch below, but I'd really like to
not do that duplication.  We can make the search pattern more complicated
(a string ending in " OR a string beginning with #, etc).  Or we can do
something I've not thought of yet.

Anyone?

The same thing will have to be done to update_branch_version.  (Or I
can remove that script and make update_version take command-line options
instead.)


Index: update_version
===================================================================
retrieving revision 1.2
diff -u -r1.2 update_version
--- update_version      2001/03/18 00:08:56     1.2
+++ update_version      2001/05/24 21:51:42
@@ -11,7 +11,7 @@

 FILES="gcc/gcc/version.c gcc/gcc/f/version.c gcc/libf2c/libF77/Version.c gcc/libf2c/libI77/Version.c gcc/libf2c/libU77/Version.c"

-/usr/local/bin/cvs co $FILES
+/usr/local/bin/cvs co $FILES gcc/libstdc++-v3/include/bits/c++config

 for file in $FILES; do

@@ -20,6 +20,12 @@
 $OLD_VERSION
 HERE
 done
+
+file=gcc/libstdc++-v3/include/bits/c++config
+OLD_VERSION=`/bin/cat $file`
+/bin/sed -e "s/\(#.*\) [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/\1 ${CURR_DATE}/" >${file} <<HERE
+$OLD_VERSION
+HERE

 /usr/local/bin/cvs commit -m "Daily bump." $FILES



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]