forked from AMReX-Codes/amrex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final twiddling of CMake files for now (I hope)
- Loading branch information
1 parent
97aaa12
commit 21fc642
Showing
5 changed files
with
37 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Write the CCSEConfig.cmake file, can set as many as the following | ||
# VERSION = full requested version string | ||
# VERSION_MAJOR = major version if requested, else 0 | ||
# VERSION_MINOR = minor version if requested, else 0 | ||
# VERSION_PATCH = patch version if requested, else 0 | ||
# VERSION_TWEAK = tweak version if requested, else 0 | ||
# VERSION_COUNT = number of version components, 0 to 4 | ||
SET(CCSE_VERSION 1.1.8) | ||
SET(CCSE_VERSION_MAJOR 1) | ||
SET(CCSE_VERSION_MINOR 1) | ||
SET(CCSE_VERSION_PATCH 8) | ||
SET(CCSE_VERSION_COUNT 3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,36 @@ | ||
#!/bin/bash | ||
|
||
if [ "$#" -ne 1 ] | ||
if [ "$#" -ne 3 ] | ||
then | ||
echo " " | ||
echo " Generate a release tarball: " | ||
echo " " | ||
echo " $0 <n> (where <n> is a version string)" | ||
echo " $0 <n1.n2.n3> (where n1.n2.n3 is a version string)" | ||
echo " " | ||
echo " Note that "vn1.n2.n3" must be a named tag in the git repository" | ||
echo " Done with the following sequence: " | ||
echo " #> git tag -a v\${version} -m \"Version \${version}\"" | ||
echo " #> git push --tags" | ||
echo " " | ||
fi | ||
|
||
export version=$1 | ||
export version=$1.$2.$3 | ||
export outfile="../ccse-${version}.tar.gz" | ||
echo "Creating tarball ${outfile}" | ||
echo ${version} > BoxLib_Version.txt | ||
git tag -a v${version} -m "Version ${version}" | ||
echo "Creating tarball ${outfile} and Tools/CMake/BoxLib_Version.cmake" | ||
git archive --format=tar --prefix=ccse-${version}/ v${version} | gzip >${outfile} | ||
|
||
cat <<EOF > Tools/CMake/BoxLib_Version.cmake | ||
# Write the CCSEConfig.cmake file, can set as many as the following | ||
# VERSION = full requested version string | ||
# VERSION_MAJOR = major version if requested, else 0 | ||
# VERSION_MINOR = minor version if requested, else 0 | ||
# VERSION_PATCH = patch version if requested, else 0 | ||
# VERSION_TWEAK = tweak version if requested, else 0 | ||
# VERSION_COUNT = number of version components, 0 to 4 | ||
SET(CCSE_VERSION ${version}) | ||
SET(CCSE_VERSION_MAJOR $1) | ||
SET(CCSE_VERSION_MINOR $2) | ||
SET(CCSE_VERSION_PATCH $3) | ||
SET(CCSE_VERSION_COUNT 3) | ||
EOF | ||
|