Skip to content

Commit

Permalink
scripts: simple improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
karolherbst committed Oct 14, 2012
1 parent befad41 commit 44f49c4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build_desura.sh
@@ -1,12 +1,18 @@
#!/bin/sh

PREFIX="../install"
BINDIR=""
LIBDIR="lib"
DATADIR=""

printf 'Make sure to run \033[1;31msudo ./install-deps.sh\033[0m before compiling!\n'

printf 'We are compiling CEF first'
if [ ! -d "build_cef" ] ; then
mkdir build_cef
fi
cd build_cef
cmake .. -DCMAKE_INSTALL_PREFIX=../install -DRUNTIME_LIBDIR="lib" -DBUILD_ONLY_CEF=ON || exit 1
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DRUNTIME_LIBDIR=$LIBDIR -DBUILD_ONLY_CEF=ON || exit 1
make install $@ || exit 2
cd -

Expand All @@ -15,7 +21,7 @@ if [ ! -d "build" ] ; then
mkdir build
fi
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install -DBINDIR="" -DRUNTIME_LIBDIR="lib" -DDATADIR="" -DBUILD_CEF=OFF || exit 3
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DBINDIR=$BINDIR -DRUNTIME_LIBDIR=$LIBDIR -DDATADIR=$DATADIR -DBUILD_CEF=OFF || exit 3
make install $@ || exit 4
printf 'Run \033[1;31m./install/desura\033[0m to start Desura!\n'

0 comments on commit 44f49c4

Please sign in to comment.