Updated build scripts

This commit is contained in:
MathuSum Mut
2018-11-04 17:35:49 +01:00
parent 38784df6ef
commit cee6b245c4
9 changed files with 43 additions and 49 deletions

View File

@@ -17,13 +17,13 @@ SCRIPTDIR="$(dirname "$(readlink -f "$0")")"
# './setupBuildDeps.sh --manually "Debian" "stable"' is for you.
# Load shared functions
. $SCRIPTDIR/zg_shared.sh
. $SCRIPTDIR/detect-system.sh
# Got root?
if [ `id -u`'x' != '0x' ] && [ "$1" != "--manually" ]; then
echo 'This script should be run as root (UID 0).' >&2
exit 1
fi
#if [ `id -u`'x' != '0x' ] && [ "$1" != "--manually" ]; then
# echo 'This script should be run as root (UID 0).' >&2
# exit 1
#fi
if [ "$(which git 2>/dev/null)" != "" ]; then
gitcommit="$(git log -1 --pretty=tformat:"%H" $SCRIPTDIR/../..)"

View File

@@ -132,7 +132,7 @@ echo "CPU cores to be used: $NUMCORES"
# Load shared functions
. $SCRIPTDIR/zg_shared.sh
. $SCRIPTDIR/detect-system.sh
# ----------------------------------------------------------------------------
@@ -317,14 +317,11 @@ else
if [ $? -ne 0 ]; then
echo 'ERROR: MAKE failed.' >&2; exit 2
fi
git clone https://github.com/ZetaGlest/zetaglest-data.git
cd ..
echo ''
echo 'BUILD COMPLETE.'
echo ''
echo 'To launch ZetaGlest from the current directory, use:'
echo ' ./build/zetaglest'
#echo 'Or change into mk/linux and run it from there:'
#echo ' ./zetaglest --ini-path=./ --data-path=./'
echo ' ./zetaglest.sh'
fi

View File

@@ -4,5 +4,5 @@
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
# Copyright (c) 2011-2013 Mark Vejvoda under GNU GPL v3.0+
./setupBuildDeps.sh
./build-zg-nosudo.sh
./build-deps.sh
./build-zg-nodeps.sh

7
mk/linux/pull.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
cd ../..
git pull
currentDir=$PWD
cd /usr/share/zetaglest
git pull
cd $currentDir

13
mk/linux/setup.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Use this script to build ZetaGlest using cmake
# ----------------------------------------------------------------------------
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
# Copyright (c) 2011-2013 Mark Vejvoda under GNU GPL v3.0+
currentDir=$PWD
cd /usr/share
git clone https://github.com/ZetaGlest/zetaglest-data.git zetaglest
cd $currentDir
./pull.sh
./build-zg.sh
chmod -R 777 build/

4
mk/linux/zetaglest.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
export DBUS_FATAL_WARNINGS=0
unset XMODIFIERS
./build/zetaglest