summaryrefslogtreecommitdiff
path: root/maintainer-scripts/update_version
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-10 00:08:50 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-10 00:08:50 +0000
commitc2c21625accd237d42d22433338c0fe583d6c6dd (patch)
tree464ba6f500cbc620131610ef85222710ca9c15ab /maintainer-scripts/update_version
parent506a340ba4218fad08e7f70280597006fd937f33 (diff)
downloadgcc-c2c21625accd237d42d22433338c0fe583d6c6dd.tar.gz
* crontab, doc_exclude, update_branch_version, update_version,
update_web_docs: New files (as currently used by gccadmin). * README: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40352 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts/update_version')
-rwxr-xr-xmaintainer-scripts/update_version26
1 files changed, 26 insertions, 0 deletions
diff --git a/maintainer-scripts/update_version b/maintainer-scripts/update_version
new file mode 100755
index 00000000000..712bec2bd9c
--- /dev/null
+++ b/maintainer-scripts/update_version
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# Run this from /tmp.
+CVSROOT=/cvs/gcc
+export CVSROOT
+/bin/rm -rf /tmp/$$
+/bin/mkdir /tmp/$$
+cd /tmp/$$
+
+CURR_DATE=`/bin/date +"%Y%m%d"`
+
+FILES="egcs/gcc/version.c egcs/gcc/f/version.c egcs/libf2c/libF77/Version.c egcs/libf2c/libI77/Version.c egcs/libf2c/libU77/Version.c"
+
+/usr/local/bin/cvs co $FILES
+
+for file in $FILES; do
+
+ 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
+done
+
+/usr/local/bin/cvs commit -m "Daily bump." $FILES
+
+/bin/rm -rf /tmp/$$