Skip to content

Commit

Permalink
Script for creating .tar.gz source archive, with whole SDL repo plus …
Browse files Browse the repository at this point in the history
…app sources
  • Loading branch information
pelya committed Nov 26, 2012
1 parent 5b60f49 commit ad6cd2c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -8,5 +8,5 @@ project/src
project/res/values*
project/AndroidManifest.xml
project/jni/Settings.mk
libapplication.so
project/jni/application/*/libapplication*.so
project/jni/application/src
13 changes: 13 additions & 0 deletions createSourceArchive.sh
@@ -0,0 +1,13 @@
#!/bin/sh

APPNAME=`grep AppName AndroidAppSettings.cfg | sed 's/.*=//' | tr -d '"' | tr " '/" '---'`
APPVER=`grep AppVersionName AndroidAppSettings.cfg | sed 's/.*=//' | tr -d '"' | tr " '/" '---'`

# TODO: Boost and Python are stored in repository as precompiled binaries, the proper way to fix that is to build them using scripts, and remove that binaries
tar -c -z --exclude-vcs --exclude="*.o" --exclude="*.a" --exclude="*.so" --exclude="*.d" --exclude="*.dep" \
-f $APPNAME-$APPVER-src.tar.gz \
`git ls-files --exclude-standard | grep -v '^project/jni/application/.*'` \
`find project/jni/application -maxdepth 1 -type f` \
project/jni/application/src \
project/jni/application/`readlink project/jni/application/src` \
project/AndroidManifest.xml project/src
1 change: 1 addition & 0 deletions project/jni/application/ballfield/AndroidAppSettings.cfg
Expand Up @@ -17,6 +17,7 @@ CompatibilityHacks=n
CompatibilityHacksStaticInit=n
CompatibilityHacksTextInputEmulatesHwKeyboard=y
CompatibilityHacksPreventAudioChopping=n
CompatibilityHacksAppIgnoresAudioBufferSize=n
AppUsesMouse=y
AppNeedsTwoButtonMouse=y
ShowMouseCursor=n
Expand Down

0 comments on commit ad6cd2c

Please sign in to comment.