Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
scripts
mahara-scripts
Commits
303bf354
Commit
303bf354
authored
Jul 12, 2010
by
Francois Marier
Browse files
Add dependency checking (git, gpg and lp-project-upload)
Signed-off-by:
Francois Marier
<
francois@catalyst.net.nz
>
parent
bb0878e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
release.sh
View file @
303bf354
...
...
@@ -18,6 +18,31 @@ fi
# Check for git gpg lp-project-upload
if
[
!
-x
/usr/bin/gpg
]
;
then
echo
"You need to install gpg: apt-get install gnupg"
exit
1
fi
if
[
!
-x
/usr/bin/git
]
;
then
echo
"You need to install git: apt-get install git-core"
exit
1
fi
if
[
!
-x
/usr/bin/lp-project-upload
]
;
then
echo
"You need to install lp-project-upload: apt-get install ubuntu-dev-tools"
exit
1
fi
GIT_MAJOR
=
`
git
--version
|
cut
-d
' '
-f
3 |
cut
-d
'.'
-f
1
`
GIT_MINOR
=
`
git
--version
|
cut
-d
' '
-f
3 |
cut
-d
'.'
-f
2
`
if
[
$GIT_MAJOR
-lt
1
]
||
[
$GIT_MAJOR
==
1
-a
$GIT_MINOR
-lt
6
]
;
then
echo
"Your version of git is too old. Install git 1.6."
exit
1
fi
# Check all parameters
VERSION
=
$1
MAJOR
=
${
VERSION
%.*
}
...
...
Write
Preview
Supports
Markdown
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