Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

scripts: simple improvements

  • Loading branch information...
commit 44f49c490ff3e577acd1421df7407105ac02b684 1 parent befad41
@karolherbst karolherbst authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 build_desura.sh
View
10 build_desura.sh
@@ -1,4 +1,10 @@
#!/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'
@@ -6,7 +12,7 @@ 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 -
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.