forked from ungleich-public/cdist
many release related cleanups
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
24bb4aa481
commit
fc9dd61fe0
3 changed files with 106 additions and 99 deletions
|
|
@ -76,16 +76,6 @@ case "$option" in
|
|||
"$0" test
|
||||
;;
|
||||
|
||||
check-version)
|
||||
changelog_version=$($0 changelog-version)
|
||||
|
||||
if git show --quiet $changelog_version >/dev/null 2>&1; then
|
||||
echo "Version $changelog_version already exists, aborting."
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
blog)
|
||||
version=$1; shift
|
||||
blogfile=$1; shift
|
||||
|
|
@ -113,12 +103,13 @@ eof
|
|||
git commit -m "cdist blog update: $version" "$blogfile" || true
|
||||
;;
|
||||
|
||||
ml-release)
|
||||
version=$1; shift
|
||||
|
||||
release-ml)
|
||||
version=$($0 changelog-version)
|
||||
to_a=cdist
|
||||
to_d=l.schottelius.org
|
||||
to=${to_a}@${to_d}
|
||||
to=n@schottelius.org
|
||||
|
||||
from_a=nico-cdist
|
||||
from_d=schottelius.org
|
||||
|
|
@ -136,7 +127,7 @@ cdist $version has been released with the following changes:
|
|||
|
||||
eof
|
||||
|
||||
"$0" changelog-changes
|
||||
"$0" changelog-changes "$version"
|
||||
cat << eof
|
||||
|
||||
Cheers,
|
||||
|
|
@ -150,32 +141,8 @@ eof
|
|||
;;
|
||||
|
||||
|
||||
dist-tag)
|
||||
version=$($0 changelog-version)
|
||||
# add tag
|
||||
printf "Enter tag description for %s> " "$version"
|
||||
read tagmessage
|
||||
git tag "$version" -m "$tagmessage"
|
||||
;;
|
||||
|
||||
dist-branch-merge)
|
||||
version=$($0 changelog-version)
|
||||
target_branch=${version%\.*}
|
||||
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
if [ "$target_branch" = "$current_branch" ]; then
|
||||
echo "Skipping merge, already on destination branch"
|
||||
else
|
||||
printf "Press enter to git merge $current_branch into \"$target_branch\" > "
|
||||
read prompt
|
||||
git checkout "$target_branch"
|
||||
git merge "$current_branch"
|
||||
git checkout "$current_branch"
|
||||
fi
|
||||
;;
|
||||
|
||||
release-freecode)
|
||||
version=$($0 changelog-version)
|
||||
freecode-release)
|
||||
version=$1; shift
|
||||
api_token=$(awk '/machine freecode login/ { print $8 }' ~/.netrc)
|
||||
|
||||
printf "Enter tag list for freecode release %s> " "$version"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue