source: vendor/gcc/3.2.2/maintainer-scripts/update_version

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.
4CVSROOT=/cvs/gcc
5export CVSROOT
6/bin/rm -rf /tmp/$$
7/bin/mkdir /tmp/$$
8cd /tmp/$$
9
10# ARGS is passed to 'cvs co'
11ARGS="$*"
12CURR_DATE=`/bin/date +"%Y%m%d"`
13
14# version is contained within a char*
15textstring_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
18cppdefine_FILES="gcc/libstdc++-v3/include/bits/c++config"
19
20/usr/local/bin/cvs co $ARGS $textstring_FILES $cppdefine_FILES
21
22for 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
26HERE
27done
28
29for 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
33HERE
34done
35
36/usr/local/bin/cvs commit -m "Daily bump." $textstring_FILES $cppdefine_FILES
37commit_results=$?
38
39/bin/rm -rf /tmp/$$
40exit $commit_results
41
Note: See TracBrowser for help on using the repository browser.