Currently this script works for subversion. It should be rewritten for git.
It should verify that the tag doesn't already exist. Some sample code that could be helpful is this:
#!/bin/bash
set -e #fail on error
tag_already_exists() {
echo Verifying tag does not exist: "$1"
if git show-ref --tags --quiet --verify -- "refs/tags/$1"
then
echo Git tag "$1" already exists locally....
return 0
else
echo Git tag "$1" does not yet exist....
return 1
fi
}
if ! tag_already_exists $2
then
echo OK
else
echo Error
fi
It should also verify that the current repository is not behind or diverged from the origin. If this is the case, than a pull should be done first. If the current repository is behind, than this is not a problem. Some useful information might be here: http://stackoverflow.com/questions/3258243/git-check-if-pull-needed
The steps necessary to create a release are simple:
check that you are in a clean working copy, i.e., no changes that are not yet committed, and that the current version is indeed the version you want to release.
A release is named after the date on which it is released in the format YYYY-MM-DD.
Run the following command in the local working copy git tag -a YYYY-MM-DD -m "Tagging version YYYY-MM-DD"
Run make source-distribution
Run make distribution and rename CaGe-dist.zip to CaGe.zip
Copy these two archives to the website and update the changelog
Currently this script works for subversion. It should be rewritten for git.
It should verify that the tag doesn't already exist. Some sample code that could be helpful is this:
or
It should also verify that the current repository is not behind or diverged from the origin. If this is the case, than a pull should be done first. If the current repository is behind, than this is not a problem. Some useful information might be here: http://stackoverflow.com/questions/3258243/git-check-if-pull-needed