Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
e8d5bc7c
Commit
e8d5bc7c
authored
Jan 18, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the snapshot script for Mercurial
parent
42a3df6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
snapshot.sh
build-scripts/snapshot.sh
+2
-8
No files found.
build-scripts/snapshot.sh
View file @
e8d5bc7c
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# Generate a current snapshot from source control
# Generate a current snapshot from source control
echo
"Checking out source"
echo
"Checking out source"
svn co
-q
http://svn.libsdl.org/trunk/SDL
hg clone http://hg.libsdl.org/SDL
||
exit
$?
(
cd
SDL
&&
./autogen.sh
&&
rm
-rf
autom4te.cache
)
(
cd
SDL
&&
./autogen.sh
&&
rm
-rf
autom4te.cache
)
sh SDL/build-scripts/updaterev.sh
sh SDL/build-scripts/updaterev.sh
cp
SDL/include/SDL_config.h.default SDL/include/SDL_config.h
cp
SDL/include/SDL_config.h.default SDL/include/SDL_config.h
...
@@ -15,7 +15,7 @@ minor=`fgrep "#define SDL_MINOR_VERSION" SDL/include/SDL_version.h | \
...
@@ -15,7 +15,7 @@ minor=`fgrep "#define SDL_MINOR_VERSION" SDL/include/SDL_version.h | \
patch
=
`
fgrep
"#define SDL_PATCHLEVEL"
SDL/include/SDL_version.h |
\
patch
=
`
fgrep
"#define SDL_PATCHLEVEL"
SDL/include/SDL_version.h |
\
sed
's,[^0-9]*\([0-9]*\),\1,'
`
sed
's,[^0-9]*\([0-9]*\),\1,'
`
rev
=
`
fgrep
"#define SDL_REVISION"
SDL/include/SDL_revision.h |
\
rev
=
`
fgrep
"#define SDL_REVISION"
SDL/include/SDL_revision.h |
\
sed
's,[^0-9]*\([0-9]*\),\1,'
`
sed
's,[^0-9]*\([0-9]*\)
:.*
,\1,'
`
path
=
"SDL-
$major
.
$minor
.
$patch
-
$rev
"
path
=
"SDL-
$major
.
$minor
.
$patch
-
$rev
"
mv
SDL
$path
mv
SDL
$path
...
@@ -25,9 +25,3 @@ echo $path.zip
...
@@ -25,9 +25,3 @@ echo $path.zip
rm
-f
$path
.zip
rm
-f
$path
.zip
zip
-rq
$path
.zip
$path
zip
-rq
$path
.zip
$path
rm
-rf
$path
rm
-rf
$path
#ln -sf $path.tar.gz SDL-1.3.tar.gz
#ln -sf $path.zip SDL-1.3.zip
#date=`date +"%a %b %e"`
#sed -e "s/<-- SDL 1.3 DATE -->.*/<-- SDL 1.3 DATE --> $date/" <../svn.php >../svn.php.new
#mv ../svn.php.new ../svn.php
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