Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mahara-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
mahara
mahara-scripts
Commits
b4618df1
Commit
b4618df1
authored
May 04, 2011
by
Richard Mansfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change release script to push to gerrit repo
parent
691937af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
release.sh
release.sh
+8
-9
No files found.
release.sh
View file @
b4618df1
...
...
@@ -84,9 +84,7 @@ pushd ${BUILDDIR}/mahara
# Get the public & security branches
# Main Mahara repo to pull from
PUBLIC
=
"git@gitorious.org:mahara/mahara.git"
echo
"Cloning public repository
${
PUBLIC
}
in
${
BUILDDIR
}
/mahara"
...
...
@@ -215,6 +213,11 @@ git commit -s -m "Version bump for $NEWRELEASE"
# Add gerrit repo, for pushing the new security patches, version bump & changelog commits
GERRIT
=
"ssh://reviews.mahara.org:29418/mahara"
git remote add gerrit
${
GERRIT
}
# Output commands to push to the remote repository and clean up
CLEANUPSCRIPT
=
release-
${
RELEASE
}
-cleanup
.sh
...
...
@@ -222,12 +225,8 @@ echo > ${CURRENTDIR}/${CLEANUPSCRIPT}
echo
"cd
${
BUILDDIR
}
/mahara"
>>
${
CURRENTDIR
}
/
${
CLEANUPSCRIPT
}
echo
"git push mahara
${
BRANCH
}
:refs/heads/
${
BRANCH
}
"
>>
${
CURRENTDIR
}
/
${
CLEANUPSCRIPT
}
echo
"git push mahara
${
RELEASETAG
}
:refs/tags/
${
RELEASETAG
}
"
>>
${
CURRENTDIR
}
/
${
CLEANUPSCRIPT
}
if
[
"
$OPTION
"
!=
"justpublic"
]
;
then
echo
"git push mahara-security S_
${
BRANCH
}
:refs/heads/
${
BRANCH
}
"
>>
${
CURRENTDIR
}
/
${
CLEANUPSCRIPT
}
echo
"git push mahara-security
${
RELEASETAG
}
:refs/tags/
${
RELEASETAG
}
"
>>
${
CURRENTDIR
}
/
${
CLEANUPSCRIPT
}
fi
echo
"git push gerrit
${
BRANCH
}
:refs/heads/
${
BRANCH
}
"
>>
${
CURRENTDIR
}
/
${
CLEANUPSCRIPT
}
echo
"git push gerrit
${
RELEASETAG
}
:refs/tags/
${
RELEASETAG
}
"
>>
${
CURRENTDIR
}
/
${
CLEANUPSCRIPT
}
echo
"gpg --armor --sign --detach-sig
${
CURRENTDIR
}
/mahara-
${
RELEASE
}
.tar.gz"
>>
${
CURRENTDIR
}
/
${
CLEANUPSCRIPT
}
echo
"gpg --armor --sign --detach-sig
${
CURRENTDIR
}
/mahara-
${
RELEASE
}
.tar.bz2"
>>
${
CURRENTDIR
}
/
${
CLEANUPSCRIPT
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment