This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the current revision number available
- Loading branch information
Showing
6 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
# | ||
# Print the current source revision, if available | ||
|
||
srcdir=`dirname $0`/.. | ||
|
||
if [ -d $srcdir/.svn ]; then | ||
cd $srcdir | ||
svnversion -c | sed -e 's,[0-9]*:\([0-9]*\)[A-Z]*,\1,' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
# | ||
# Generate a current snapshot from source control | ||
|
||
svn co http://svn.libsdl.org/trunk/SDL | ||
(cd SDL && ./autogen.sh && rm -rf autom4te.cache) | ||
sh SDL/build-scripts/updaterev.sh | ||
cp SDL/include/SDL_config.h.default SDL/include/SDL_config.h | ||
|
||
major=`fgrep "#define SDL_MAJOR_VERSION" SDL/include/SDL_version.h | \ | ||
sed 's,[^0-9]*\([0-9]*\),\1,'` | ||
minor=`fgrep "#define SDL_MINOR_VERSION" SDL/include/SDL_version.h | \ | ||
sed 's,[^0-9]*\([0-9]*\),\1,'` | ||
patch=`fgrep "#define SDL_PATCHLEVEL" SDL/include/SDL_version.h | \ | ||
sed 's,[^0-9]*\([0-9]*\),\1,'` | ||
rev=`fgrep "#define SDL_REVISION" SDL/include/SDL_revision.h | \ | ||
sed 's,[^0-9]*\([0-9]*\),\1,'` | ||
path="SDL-$major.$minor.$patch-$rev" | ||
|
||
mv SDL $path | ||
tar zcf $path.tar.gz $path | ||
rm -f $path.zip | ||
zip -r $path.zip $path | ||
rm -rf $path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
# | ||
# Generate a header file with the current source revision | ||
|
||
cd `dirname $0` | ||
srcdir=.. | ||
header=$srcdir/include/SDL_revision.h | ||
|
||
rev=`sh showrev.sh` | ||
if [ "$rev" != "" ]; then | ||
echo "#define SDL_REVISION $rev" >$header.new | ||
if diff $header $header.new >/dev/null 2>&1; then | ||
rm $header.new | ||
else | ||
mv $header.new $header | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters