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
612408ff
Commit
612408ff
authored
11 years ago
by
Ganeva, Marina
Browse files
Options
Downloads
Patches
Plain Diff
Some other minor changes to the release script.
parent
df10fcfb
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
bin/how-to-release.txt
+10
-0
10 additions, 0 deletions
bin/how-to-release.txt
bin/release.sh.in
+12
-10
12 additions, 10 deletions
bin/release.sh.in
with
22 additions
and
10 deletions
bin/how-to-release.txt
0 → 100644
+
10
−
0
View file @
612408ff
How to use the release script.
1. cd to some empty directory
2. git clone git://apps.jcns.fz-juelich.de/BornAgain.git
3. git checkout develop
4. create the build directory somewhere outside the source tree
5. cd path-to-build-directory
6. cmake path-to-source-dir
7. run script path-to-build-dir/bin/release.sh
This diff is collapsed.
Click to expand it.
bin/release.sh.in
+
12
−
10
View file @
612408ff
#!/bin/bash
#
!!! This script does not finished and tested yet! Please don't run it!
#
Feel free to test this script. Let me know id something goes wrong.
# the script will exit if any of commands will return non-zero
set
-e
...
...
@@ -48,7 +48,7 @@ H. Display a help message
Q. Quit
"
read
-p
"Enter selection
[0-3]
: "
read
-p
"Enter selection: "
case
$REPLY
in
q|Q
)
echo
"Program terminated. "
...
...
@@ -63,7 +63,7 @@ case $REPLY in
4. create the build directory somewhere outside the source tree
5. cd path-to-build-directory
6. cmake path-to-source-dir
7. run script bin/release.sh
7. run script
path-to-build-dir/
bin/release.sh
"
exit
;;
...
...
@@ -81,8 +81,8 @@ case $REPLY in
rsync
-avzhe
ssh apps@apps.jcns.fz-juelich.de:/www/apps/src/BornAgain/
$RELEASE_DIR
# make a release branch
#
git --git-dir=$GIT_SOURCE_TREE checkout -b $RELEASE_BRANCH_NAME develop
git
--git-dir
=
$GIT_SOURCE_TREE
checkout
-b
$RELEASE_BRANCH_NAME
git
--git-dir
=
$GIT_SOURCE_TREE
checkout
-b
$RELEASE_BRANCH_NAME
develop
#
git --git-dir=$GIT_SOURCE_TREE checkout -b $RELEASE_BRANCH_NAME
# build BornAgain with App and UserManual
cd
$CMAKE_BUILD_DIR
...
...
@@ -96,11 +96,13 @@ case $REPLY in
$CMAKE_BUILD_DIR
/bin/App
--performance
--batch
--threads
=
-1
# Modify file dev-tools/log/perf_history.txt
echo
"Please, enter a comment for perf-history.txt [Press Enter if empty]"
read
-t
10 PERF_COMMENT
if
[
-n
"
$PERF_COMMENT
"
]
;
then
echo
$PERF_COMMENT
>>
$PATH_TO_PERF_TXT
fi
# the commented code exits in the case of no input with bash -e option
#echo "Please, enter a comment for perf-history.txt [Press Enter if empty]"
#read -t 10 PERF_COMMENT
#if [ -n "$PERF_COMMENT" ]; then
# echo $PERF_COMMENT >> $PATH_TO_PERF_TXT
#fi
echo
"Release
$BA_VERSION
"
>>
$PATH_TO_PERF_TXT
cat
perf_history.txt
>>
$PATH_TO_PERF_TXT
# [FUTURE TASK] Modify CHANGELOG (SQL query to get data from the redmine roadmap database)
...
...
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