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
Oliver Behnke
graphicsframework
Commits
6376bf89
Commit
6376bf89
authored
May 04, 2011
by
Oliver Bock
Browse files
SDL switched from SVN to HG
parent
f4b294c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
build.sh
View file @
6376bf89
...
...
@@ -146,7 +146,7 @@ check_prerequisites()
echo
"Checking prerequisites..."
|
tee
-a
$LOGFILE
# required toolchain
TOOLS
=
"automake autoconf m4 cmake wget svn cvs tar patch gcc g++ ld libtool ar lex yacc pkg-config"
TOOLS
=
"automake autoconf m4 cmake wget svn cvs tar patch gcc g++ ld libtool ar lex yacc pkg-config
hg
"
for
tool
in
$TOOLS
;
do
if
!
(
type
$tool
>
/dev/null 2>&1
)
;
then
...
...
@@ -215,14 +215,13 @@ prepare_sdl()
mkdir
-p
$ROOT
/build/sdl
>>
$LOGFILE
||
failure
cd
$ROOT
/3rdparty/sdl
||
failure
if
[
-d
.
svn
]
;
then
if
[
-d
.
hg
]
;
then
echo
"Updating SDL..."
|
tee
-a
$LOGFIL
# make sure local changes (patches) are reverted, hence also updated
svn revert
-R
.
>>
$LOGFILE
2>&1
||
failure
svn update
>>
$LOGFILE
2>&1
||
failure
# local changes (patches) are reverted, hence also updated
hg update
--clean
>>
$LOGFILE
2>&1
||
failure
else
echo
"Retrieving SDL (this may take a while)..."
|
tee
-a
$LOGFILE
svn checkout
http://
svn
.libsdl.org/
branches/SDL-1.2
.
>>
$LOGFILE
2>&1
||
failure
hg clone
-r
SDL-1.2
http://
hg
.libsdl.org/
SDL
.
>>
$LOGFILE
2>&1
||
failure
fi
return
0
...
...
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