Skip to content
Snippets Groups Projects
Commit 0bafee54 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Merge branch 'v2.1'

parents 017626bd 5a747c19
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,10 @@ confirm () {
VALIDATED=
if [ "$1" = --validated ] ; then
VALIDATED=yes
elif test -n "$1" ; then
echo ERROR
echo "cannot understand $1 option"
exit 1
fi
......@@ -89,26 +93,30 @@ if ! test "$VALIDATED" ; then
echo " http://plumed.github.io/doc-v$shortversion"
echo "In case of success, relaunch this script as \"./release.sh --validated\""
else
echo "Updating VERSION file to $version"
{
grep \# VERSION
echo $version
} > VERSION.tmp
mv VERSION.tmp VERSION
git add VERSION
echo "Here's the new VERSION file:"
echo "***"
cat VERSION
echo "***"
msg="Release v$version
[makedoc]"
echo "Now I will make the release commit, add a tag named v$version"
echo "Now I will add it, prepare a release commit, add a tag named v$version"
echo "push it to origin and create a tgz file"
echo "I will use the following commands:"
echo "***"
echo "git add VERSION"
echo "git commit --allow-empty -m \"$msg\""
echo "git tag v$version"
echo "git push origin v$version"
echo "git archive -o plumed-$version.tgz --prefix plumed-$version/ v$version"
echo "***"
confirm || exit
git add VERSION
git commit --allow-empty -m "$msg"
git tag v$version
git push origin v$version
......
......@@ -95,11 +95,7 @@ std::ostream & operator<<(std::ostream &log,const ActionRegister&ar);
#define PLUMED_CONCATENATE_DIRECT(s1, s2) s1##s2
#define PLUMED_CONCATENATE(s1, s2) PLUMED_CONCATENATE_DIRECT(s1, s2)
#ifdef _MSC_VER // Necessary for edit & continue in MS Visual C++.
# define PLUMED_UNIQUENAME(str) PLUMED_CONCATENATE(str, __COUNTER__)
#else
# define PLUMED_UNIQUENAME(str) PLUMED_CONCATENATE(str, __LINE__)
#endif
#define PLUMED_UNIQUENAME(str) PLUMED_CONCATENATE(str, __LINE__)
/// Shortcut for Action registration
/// \relates PLMD::ActionRegister
......
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