]> git.ipfire.org Git - thirdparty/gcc.git/blob - maintainer-scripts/update_version_git
[Ada] Improve handling of SPARK_Mode in generic instances
[thirdparty/gcc.git] / maintainer-scripts / update_version_git
1 #!/bin/sh
2 #
3 # Update the current version date in DATESTAMP files and generate
4 # ChangeLog file entries since the last DATESTAMP update from the
5 # commit messages.
6
7 GITROOT=${GITROOT:-"/git/gcc.git"}
8
9 # Run this from /tmp.
10 export GITROOT
11 BASEDIR=`mktemp -d`
12 cd "$BASEDIR"
13
14 GIT=${GIT:-/usr/local/bin/git}
15
16 # Assume all will go well.
17 SUBDIR=$BASEDIR/gcc
18 ${GIT} clone -q -b master "$GITROOT" "$SUBDIR"
19
20 cp -a $SUBDIR/contrib/gcc-changelog $BASEDIR/gcc-changelog
21 cd "$SUBDIR"
22 python3 ../gcc-changelog/git_update_version.py -p
23 RESULT=$?
24
25 cd /tmp
26
27 /bin/rm -rf $BASEDIR
28 exit $RESULT