mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
19 lines
471 B
Bash
Executable file
19 lines
471 B
Bash
Executable file
#!/bin/bash
|
|
|
|
appdir=""
|
|
if [ "$1" ]
|
|
then
|
|
appdir=$1
|
|
else
|
|
exit 1
|
|
fi
|
|
|
|
# current android version mumber.
|
|
version="3.2.0"
|
|
sversion=$(echo $version | sed -E "s:(.*)\..*:\1:")
|
|
tuple=$(echo $version | sed -E "s:(.*)\.(.*)\.(.*):(\1, \2, \3):")
|
|
|
|
# patch different version info accordingly.
|
|
sed -E "s:VERSION_TUPLE =.*:VERSION_TUPLE = $tuple:" -i $appdir/pysollib/settings.py
|
|
sed -E "s:(.*\(')dev(',.*):\1fc-$sversion\2:" -i $appdir/pysollib/gamedb.py
|
|
echo "VERSION = $version"
|