Skip to content
Snippets Groups Projects
Commit 1e8ac317 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Add script to generate release branches

parent 77bd7ea5
No related branches found
No related tags found
1 merge request!42Prepare CI for the release branches
#!/bin/bash
# Copyright (c) 2013-2024 MPI-M, Luis Kornblueh, Rahul Sinha and DWD, Florian Prill. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
set -eu
set -o pipefail
script_dir=$(cd "$(dirname "$0")"; pwd)
top_srcdir=$(cd "${script_dir}/.."; pwd)
cd "${top_srcdir}"
git update-index -q --refresh || {
echo "ERROR: failed to update git index in '${top_srcdir}'" >&2
exit 1
}
git diff-files --quiet || {
echo "ERROR: '${top_srcdir}' has unstaged changes" >&2
exit 1
}
git diff-index --cached --quiet HEAD -- || {
echo "ERROR: '${top_srcdir}' has uncommited changes" >&2
exit 1
}
./autogen.sh
./configure --enable-maintainer-mode
distdir='mtime-dist'
make distdir distdir="${distdir}"
for f in $(find "${distdir}" -type f -o -type l); do
git add -f "${f#"${distdir}/"}";
done
rm -rf "${distdir}"
git status
echo "git commit -m 'Add autogenerated Autotools files'"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment