Skip to content

Commit

Permalink
Merge branch 'v2.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniBussi committed Aug 29, 2022
2 parents 4cad432 + 39f5b29 commit f38676e
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 24 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ jobs:
done
macsimple:
# still needs some fix to be upgraded to macos-11
runs-on: macos-10.15
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Set paths
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Here's a description of the content of each file and directory in the root PLUME
Makefile.conf.in : template configuration makefile
PEOPLE : list of authors
README.md : this file
VERSION : version file
VERSION.txt : version file
astyle : a local version of astyle, used to format code
configure : configuration script
configure.ac : configuration script (autoconf)
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ifneq ($(MAKECMDGOALS),clean)
-include ../Makefile.conf
endif

VERSION = $(shell if test -f ../VERSION ; then grep -v \\\# ../VERSION ; else echo "Unknown" ; fi )
VERSION = $(shell if test -f ../VERSION.txt ; then grep -v \\\# ../VERSION.txt ; else echo "Unknown" ; fi )

.PHONY: all clean install

Expand All @@ -29,7 +29,7 @@ all:
endif

pip:
cp ../VERSION ./PLUMED_VERSION
cp ../VERSION.txt ./PLUMED_VERSION
mkdir -p include
cp ../src/wrapper/Plumed.h include/

Expand All @@ -45,6 +45,6 @@ pypi:
cp -r test pypi/
cp ../src/wrapper/Plumed.h pypi/include/
cp README.rst MANIFEST.in cplumed.pxd plumed.pyx setup.py pypi/
cp ../VERSION pypi/PLUMED_VERSION
cp ../VERSION.txt pypi/PLUMED_VERSION
cd pypi ; $(python_bin) setup.py sdist
echo "now use: $(python_bin) -m twine upload dist/plumed-$(VERSION).tar.gz"
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def is_platform_mac():
return sys.platform == 'darwin'

if os.getenv("plumed_macports") is not None:
copyfile("../VERSION","PLUMED_VERSION")
copyfile("../VERSION.txt","PLUMED_VERSION")
try:
os.mkdir("include")
except OSError:
Expand Down
10 changes: 5 additions & 5 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ if ! test "$VALIDATED" ; then
else
update_changelog CHANGES/v$shortversion.md $version $shortversion "$(date '+%b %e, %Y' | sed 's/ / /g')"
{
grep \# VERSION
grep \# VERSION.txt
echo $version
} > VERSION.tmp
mv VERSION.tmp VERSION
mv VERSION.tmp VERSION.txt
echo "Here's the new VERSION file:"
echo "***"
cat VERSION
cat VERSION.txt
echo "***"
msg="Release v$version
"
Expand All @@ -152,15 +152,15 @@ else
echo "I will use the following commands:"
echo "***"
echo "git add CHANGES/v$shortversion.md"
echo "git add VERSION"
echo "git add VERSION.txt"
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 CHANGES/v$shortversion.md
git add VERSION
git add VERSION.txt
git commit --allow-empty -m "$msg"
git tag v$version
git push origin v$shortversion v$version
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# version number
VERSION = $(shell if test -f ../../VERSION ; then grep -v \\\# ../../VERSION ; else echo "Unknown" ; fi )
VERSION = $(shell if test -f ../../VERSION.txt ; then grep -v \\\# ../../VERSION.txt ; else echo "Unknown" ; fi )

# here we build the list of modules to be linked in plumedKernel
KERNEL_MODULES := $(addprefix ../,$(shell ../maketools/find_modules.sh))
Expand Down
8 changes: 4 additions & 4 deletions src/maketools/update-config-txt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ file="$1"
# version strings:
version=$(
echo "version short $(
if test -f ../../VERSION ; then
grep -v "#" ../../VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/'
if test -f ../../VERSION.txt ; then
grep -v "#" ../../VERSION.txt | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/'
else
echo "Unknown"
fi
)"
echo "version long $(
if test -f ../../VERSION ; then
grep -v "#" ../../VERSION
if test -f ../../VERSION.txt ; then
grep -v "#" ../../VERSION.txt
else
echo "Unknown"
fi
Expand Down
14 changes: 7 additions & 7 deletions src/maketools/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
echo "#ifndef __PLUMED_config_version_h"
echo "#define __PLUMED_config_version_h"
echo "#define PLUMED_VERSION_SHORT \"$(
if test -f ../../VERSION ; then
grep -v "#" ../../VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/'
if test -f ../../VERSION.txt ; then
grep -v "#" ../../VERSION.txt | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/'
else
echo "Unknown"
fi
)\""

echo "#define PLUMED_VERSION_LONG \"$(
if test -f ../../VERSION ; then
grep -v "#" ../../VERSION
if test -f ../../VERSION.txt ; then
grep -v "#" ../../VERSION.txt
else
echo "Unknown"
fi
Expand All @@ -29,15 +29,15 @@ echo "#define PLUMED_VERSION_GIT \"$(
)\""

echo "#define PLUMED_VERSION_MAJOR $(
grep -v "#" ../../VERSION | sed 's/^\([0-9][0-9]*\).*/\1/'
grep -v "#" ../../VERSION.txt | sed 's/^\([0-9][0-9]*\).*/\1/'
)"

echo "#define PLUMED_VERSION_MINOR $(
grep -v "#" ../../VERSION | sed 's/^[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/'
grep -v "#" ../../VERSION.txt | sed 's/^[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/'
)"

echo "#define PLUMED_VERSION_PATCH $(
grep -v "#" ../../VERSION | sed 's/^[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/'
grep -v "#" ../../VERSION.txt | sed 's/^[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/'
)"

echo "#endif"
Expand Down

0 comments on commit f38676e

Please sign in to comment.