Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
3b3b3a98
Commit
3b3b3a98
authored
11 years ago
by
Pospelov, Gennady
Browse files
Options
Downloads
Patches
Plain Diff
Fix in release script
parent
be34f225
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/scripts/release.sh.in
+34
-11
34 additions, 11 deletions
cmake/scripts/release.sh.in
dev-tools/release/make_release.sh
+21
-0
21 additions, 0 deletions
dev-tools/release/make_release.sh
with
55 additions
and
11 deletions
cmake/scripts/release.sh.in
+
34
−
11
View file @
3b3b3a98
...
...
@@ -86,7 +86,7 @@ case $REPLY in
# build BornAgain with App and UserManual
cd
$CMAKE_BUILD_DIR
cmake
-D
BORNAGAIN_APP
=
ON
-D
BORNAGAIN_MAN
=
ON
--build
$CMAKE_BUILD_DIR
$CMAKE_SOURCE_DIR
&&
make
-j
2
cmake
-D
BORNAGAIN_APP
=
ON
-D
BORNAGAIN_MAN
=
ON
--build
$CMAKE_BUILD_DIR
$CMAKE_SOURCE_DIR
&&
make
-j
4
# Update picture number of lines of code
# [TODO:] change qqq.png to lines_of_code.png after testing
...
...
@@ -121,12 +121,18 @@ case $REPLY in
# [Future Task:] write a validation script
# move the old package
mv
$RELEASE_DIR
/BornAgain
*
.tar.gz
$RELEASE_DIR
/old/
mv
$RELEASE_DIR
/BornAgain
*
.tar.gz
$RELEASE_DIR
/old/
mv
$RELEASE_DIR
/BornAgain
*
-win32
.exe
$RELEASE_DIR
/old/
# put the package source to RELEASE_DIR for further upload
cp
$CMAKE_BUILD_DIR
/BornAgain-
$BA_VERSION
.tar.gz
$RELEASE_DIR
# copying windows build
#wget -P $RELEASE_DIR http://apps.jcns.fz-juelich.de/redmine/attachments/62/BornAgain-$BA_VERSION-win32.exe
echo
"New
$BA_VERSION
release is successfully created in the
$RELEASE_DIR
. Please check it now ;-)"
echo
"1) Update CHANGELOG"
echo
"1) Copy new Windows build into
$RELEASE_DIR
"
exit
;;
...
...
@@ -153,17 +159,34 @@ case $REPLY in
echo
"Starting to finalize git."
# 4. Finalize git
# finalize master
git
--git-dir
=
$GIT_SOURCE_TREE
commit
-a
-m
"Release
$BA_VERSION
"
git
--git-dir
=
$GIT_SOURCE_TREE
checkout master
git
--git-dir
=
$GIT_SOURCE_TREE
merge
--no-ff
$RELEASE_BRANCH_NAME
git
--git-dir
=
$GIT_SOURCE_TREE
branch
-d
$RELEASE_BRANCH_NAME
git
--git-dir
=
$GIT_SOURCE_TREE
tag
-a
$BA_VERSION
git
--git-dir
=
$GIT_SOURCE_TREE
push
echo
"git --git-dir=
$GIT_SOURCE_TREE
commit -a -m "
Release
$BA_VERSION
""
#git --git-dir=$GIT_SOURCE_TREE commit -a -m "Release $BA_VERSION"
echo
"git --git-dir=
$GIT_SOURCE_TREE
checkout master"
#git --git-dir=$GIT_SOURCE_TREE checkout master
echo
"git --git-dir=
$GIT_SOURCE_TREE
merge --no-ff
$RELEASE_BRANCH_NAME
"
#git --git-dir=$GIT_SOURCE_TREE merge --no-ff $RELEASE_BRANCH_NAME
echo
"git --git-dir=
$GIT_SOURCE_TREE
branch -d
$RELEASE_BRANCH_NAME
"
#git --git-dir=$GIT_SOURCE_TREE branch -d $RELEASE_BRANCH_NAME
echo
"git --git-dir=
$GIT_SOURCE_TREE
tag -a
$BA_VERSION
"
#git --git-dir=$GIT_SOURCE_TREE tag -a $BA_VERSION
echo
"git --git-dir=
$GIT_SOURCE_TREE
push"
#git --git-dir=$GIT_SOURCE_TREE push
# finalize develop
git
--git-dir
=
$GIT_SOURCE_TREE
checkout develop
git
--git-dir
=
$GIT_SOURCE_TREE
merge
--no-ff
master
git
--git-dir
=
$GIT_SOURCE_TREE
push
echo
"finalize develop"
echo
"git --git-dir=
$GIT_SOURCE_TREE
checkout develop"
#git --git-dir=$GIT_SOURCE_TREE checkout develop
echo
"git --git-dir=
$GIT_SOURCE_TREE
merge --no-ff master"
#git --git-dir=$GIT_SOURCE_TREE merge --no-ff master
echo
"git --git-dir=
$GIT_SOURCE_TREE
push"
#git --git-dir=$GIT_SOURCE_TREE push
echo
"Congratulations with new
$BA_VERSION
release! Great job ;-)"
elif
[[
$REPLY
=
~ ^[nN]
$
]]
;
then
echo
"Your choice is no. Nothing will be done with git."
...
...
This diff is collapsed.
Click to expand it.
dev-tools/release/make_release.sh
0 → 100644
+
21
−
0
View file @
3b3b3a98
#!/bin/bash
# Main script to start release preparation
set
-e
mkdir
BornAgain-release
cd
BornAgain-release
git clone git://apps.jcns.fz-juelich.de/BornAgain.git
cd
BornAgain
git checkout develop
cd
..
mkdir
build
cd
build
cmake ../BornAgain
./bin/release.sh
cd
BornAgain-release/build/RELEASE
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment