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
aecbc2aa
Commit
aecbc2aa
authored
Apr 24, 2009
by
Richard Mansfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output commands for push & cleanup
parent
7bdc5a94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
3 deletions
+41
-3
release.sh
release.sh
+41
-3
No files found.
release.sh
View file @
aecbc2aa
...
...
@@ -179,7 +179,45 @@ git add ${VERSIONFILE}
git commit
-m
"Version bump for
$NEWRELEASE
"
exit
popd
rm
-rf
${
BUILDDIR
}
# Merge security back into public
if
[
"
$OPTION
"
!=
"--public"
]
;
then
git checkout
${
BRANCH
}
git merge S_
${
BRANCH
}
fi
# Output commands to push to the remote repository and clean up
CLEANUPSCRIPT
=
release-
${
RELEASE
}
-cleanup
.sh
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
"
!=
"--public"
]
;
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
"rm -rf
${
BUILDDIR
}
"
>>
${
CURRENTDIR
}
/
${
CLEANUPSCRIPT
}
chmod
700
${
CURRENTDIR
}
/
${
CLEANUPSCRIPT
}
# Clean up
rm
${
VERSIONFILE
}
.temp
rm
${
CURRENTDIR
}
/ChangeLog.temp
rm
${
CURRENTDIR
}
/changes.temp
rm
${
CURRENTDIR
}
/changes.eduforge.temp
rm
${
TMP_M4_FILE
}
echo
-e
"
\n\n
Tarballs, release notes & changelog for Eduforge:
\n
"
cd
${
CURRENTDIR
}
ls
-l
mahara-
${
RELEASE
}
.tar.gz mahara-
${
RELEASE
}
.tar.bz2 mahara-
${
RELEASE
}
.zip releasenotes-
${
RELEASE
}
.txt
${
RELEASETAG
}
.cl
echo
-e
"
\n
Check that everything is in order in the
${
BUILDDIR
}
/mahara repository."
echo
"Then run the commands in
${
CLEANUPSCRIPT
}
to push the changes back to the remote repository."
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