Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vakeesan26
Core
Commits
e28df4fb
Commit
e28df4fb
authored
11 years ago
by
Tim Otten
Browse files
Options
Downloads
Plain Diff
Merge pull request #469 from colemanw/versionUpdate
Add 'update' to releaser script
parents
d491bd44
ba9b059f
No related branches found
Branches containing commit
Tags
4.3.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/scripts/releaser/releaser
+26
-1
26 additions, 1 deletion
tools/scripts/releaser/releaser
with
26 additions
and
1 deletion
tools/scripts/releaser/releaser
+
26
−
1
View file @
e28df4fb
...
...
@@ -19,8 +19,9 @@ if [ -z "$start_point" -o -z "$version" -o -z "$first_act" ]; then
echo
"Usage:"
echo
"
$0
<start_point> <version> --build"
echo
"
$0
<start_point> <version> --publish"
echo
"
$0
<start_point> <version> --update"
echo
"
$0
<start_point> <version> --clean"
echo
"
$0
<start_point> <version> --build --publish --clean [[ORDER SIGNIFICANT]]"
echo
"
$0
<start_point> <version> --build --publish
--update
--clean [[ORDER SIGNIFICANT]]"
echo
"Arguments:"
echo
" <start_point> is a branch name (e.g.
\"
master
\"
)"
echo
" <version> is Civi release (e.g.
\"
4.3.beta2
\"
); it will become a tag name"
...
...
@@ -163,6 +164,25 @@ function do_publish() {
echo
$version
>
$latest
/latest.txt
}
#################################################
## Update Version Info
function
do_update
()
{
echo
"VERSION UPDATE: Please enter the version that comes after
$version
"
read
new_ver
if
[
-n
"
$new_ver
"
]
;
then
cd
$workdir
/
$version
/export
for
file
in
xml/version.xml sql/civicrm_generated.mysql
;
do
sed
"s/
$version
/
$new_ver
/g"
<
$file
>
$file
.tmp
mv
$file
.tmp
$file
git add
$file
done
git commit
-m
"Update version to
$new_ver
"
git push origin
"
$start_point
"
else
echo
"No version entered. Aborting version update."
fi
}
#################################################
## Cleanup
function
do_cleanup
()
{
...
...
@@ -193,6 +213,11 @@ for ACT in "$@" ; do
do_publish
set
+x
;;
--update
)
set
-ex
do_update
set
+x
;;
--clean
)
set
-ex
do_cleanup
...
...
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