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
15c00059
Commit
15c00059
authored
Dec 08, 2009
by
Richard Mansfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force user to specify public or private in release script
parent
f416f1c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
release.sh
release.sh
+12
-7
No files found.
release.sh
View file @
15c00059
...
...
@@ -6,12 +6,12 @@ set -e
print_usage
()
{
echo
"Usage is
$0
[version] [branch]"
echo
"e.g.
$0
0.6.2 0.6_STABLE"
echo
"e.g.
$0
1.0.0alpha1 master"
echo
"Usage is
$0
[version] [branch]
public|private
"
echo
"e.g.
$0
0.6.2 0.6_STABLE
private
"
echo
"e.g.
$0
1.0.0alpha1 master
public
"
}
if
[
-z
"
$1
"
]
||
[
-z
"
$2
"
]
;
then
if
[
-z
"
$1
"
]
||
[
-z
"
$2
"
]
||
[
-z
"
$3
"
]
;
then
print_usage
exit
1
fi
...
...
@@ -38,6 +38,11 @@ if [ -z "${MAJOR}" ] || [ -z "${MINOR}" ]; then
exit
1
fi
if
[
"
$OPTION
"
!=
"public"
]
&&
[
"
${
OPTION
}
"
!=
'private'
]
;
then
print_usage
exit
1
fi
if
[
-d
${
BUILDDIR
}
]
;
then
rm
-rf
${
BUILDDIR
}
fi
...
...
@@ -59,7 +64,7 @@ git remote add -t ${BRANCH} mahara ${PUBLIC}
git fetch
-q
mahara
git checkout
-b
${
BRANCH
}
mahara/
${
BRANCH
}
if
[
"
$OPTION
"
!=
"
--
public"
]
;
then
if
[
"
$OPTION
"
!=
"public"
]
;
then
echo
"Checking out security repository
${
SECURITY
}
..."
git remote add
-t
${
BRANCH
}
mahara-security
${
SECURITY
}
git fetch
-q
mahara-security
...
...
@@ -182,7 +187,7 @@ git commit -m "Version bump for $NEWRELEASE"
# Merge security back into public
if
[
"
$OPTION
"
!=
"
--
public"
]
;
then
if
[
"
$OPTION
"
!=
"public"
]
;
then
git checkout
${
BRANCH
}
git merge S_
${
BRANCH
}
fi
...
...
@@ -198,7 +203,7 @@ 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
"
!=
"
--
public"
]
;
then
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
...
...
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