Last change
on this file was 2, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | # Run this from /tmp.
|
---|
4 | CVSROOT=/cvs/gcc
|
---|
5 | export CVSROOT
|
---|
6 | /bin/rm -rf /tmp/$$
|
---|
7 | /bin/mkdir /tmp/$$
|
---|
8 | cd /tmp/$$
|
---|
9 |
|
---|
10 | # ARGS is passed to 'cvs co'
|
---|
11 | ARGS="$*"
|
---|
12 | CURR_DATE=`/bin/date +"%Y%m%d"`
|
---|
13 |
|
---|
14 | # version is contained within a char*
|
---|
15 | textstring_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"
|
---|
16 |
|
---|
17 | # version is contained within a #define
|
---|
18 | cppdefine_FILES="gcc/libstdc++-v3/include/bits/c++config"
|
---|
19 |
|
---|
20 | /usr/local/bin/cvs co $ARGS $textstring_FILES $cppdefine_FILES
|
---|
21 |
|
---|
22 | for file in $textstring_FILES; do
|
---|
23 | OLD_VERSION=`/bin/cat $file`
|
---|
24 | /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
|
---|
25 | $OLD_VERSION
|
---|
26 | HERE
|
---|
27 | done
|
---|
28 |
|
---|
29 | for file in $cppdefine_FILES; do
|
---|
30 | OLD_VERSION=`/bin/cat $file`
|
---|
31 | /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
|
---|
32 | $OLD_VERSION
|
---|
33 | HERE
|
---|
34 | done
|
---|
35 |
|
---|
36 | /usr/local/bin/cvs commit -m "Daily bump." $textstring_FILES $cppdefine_FILES
|
---|
37 | commit_results=$?
|
---|
38 |
|
---|
39 | /bin/rm -rf /tmp/$$
|
---|
40 | exit $commit_results
|
---|
41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.