fix __builtin___clear_cache overrider fallout
[official-gcc.git] / maintainer-scripts / update_version_git
blob4ebeee5afadcca70f346a16a4006a25932110de9
1 #!/bin/sh
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.
7 GITROOT=${GITROOT:-"/git/gcc.git"}
9 # Run this from /tmp.
10 export GITROOT
11 BASEDIR=`mktemp -d`
12 cd "$BASEDIR"
14 GIT=${GIT:-/usr/local/bin/git}
16 # Assume all will go well.
17 SUBDIR=$BASEDIR/gcc
18 ${GIT} clone -q -b master "$GITROOT" "$SUBDIR"
20 cp -a $SUBDIR/contrib/gcc-changelog $BASEDIR/gcc-changelog
21 cd "$SUBDIR"
22 python3 ../gcc-changelog/git_update_version.py -p
23 RESULT=$?
25 cd /tmp
27 /bin/rm -rf $BASEDIR
28 exit $RESULT