fractorium/archive/build_all.sh
Person c50568a98b --Bug fixes
-Custom palettes were not being read correctly on non ANSI machines.

--Code changes
 -Prepare files for next release.
2020-02-25 18:31:44 -08:00

48 lines
983 B
Bash
Executable File

#!/bin/bash
REBUILD=''
NVIDIA=''
NATIVE=''
CONCURRENCY='-j4'
QMAKE=${QMAKE:-/usr/bin/qmake}
RELEASE='CONFIG+=release CONFIG-=debug'
while test $# -gt 0
do
case "$1" in
--rebuild) REBUILD='1'
;;
--nvidia) NVIDIA="CONFIG += nvidia"
;;
--native) NATIVE="CONFIG += native"
;;
--travis) CONCURRENCY="-j1"
;;
--debug) RELEASE="CONFIG+=debug CONFIG-=release"
;;
--*) echo "bad option $1"; exit 1
;;
*) echo "unrecognized argument $1"; exit 1
;;
esac
shift
done
DIR=$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )
for PROJ in ${DIR}/{Ember,EmberCL,EmberGenome,EmberRender,EmberAnimate,Fractorium}
do
pushd $PROJ
if [ "x1" = "x$REBUILD" ]; then
make clean
fi
$QMAKE "$NVIDIA" "$NATIVE" $RELEASE
make $CONCURRENCY
if [ "x$?" != "x0" ]; then
echo "Build failed! Check output for errors."
exit 1
fi
popd
done