Add 'libgomp.oacc-fortran/declare-allocatable-1.f90'
[official-gcc.git] / maintainer-scripts / update_version_git
blobcf5191601694ca48290d7b214eb6d1335b60da91
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"}
8 if [ -z "$TMPDIR" ]; then
9 if [ -d /sourceware/snapshot-tmp/gcc ]; then
10 TMPDIR=/sourceware/snapshot-tmp/gcc
11 else
12 TMPDIR=/tmp
16 # Run this from $TMPDIR.
17 export GITROOT TMPDIR
18 BASEDIR=`mktemp -d`
19 cd "$BASEDIR"
21 GIT=${GIT:-/usr/local/bin/git}
23 # Assume all will go well.
24 SUBDIR="$BASEDIR/gcc"
25 ${GIT} clone -q -b master "$GITROOT" "$SUBDIR"
27 cp -a "$SUBDIR"/contrib/gcc-changelog "$BASEDIR"/gcc-changelog
28 cd "$SUBDIR"
29 python3 ../gcc-changelog/git_update_version.py -p
30 RESULT=$?
32 cd "$TMPDIR"
34 /bin/rm -rf "$BASEDIR"
35 exit $RESULT