Skip to content
Snippets Groups Projects
Commit 52f9741c authored by Albert Gräf's avatar Albert Gräf
Browse files

Remove obsolete build options and add a new -k option to bypass the initial...

Remove obsolete build options and add a new -k option to bypass the initial cleaning phase and keep all build products of the previous run.
parent e48eac37
No related branches found
No related tags found
1 merge request!172Build system fixes
...@@ -15,21 +15,26 @@ then ...@@ -15,21 +15,26 @@ then
echo echo
echo " Usage: ./tar_em_up.sh -option1 -option2 ..." echo " Usage: ./tar_em_up.sh -option1 -option2 ..."
echo " Options:" echo " Options:"
echo " -a l2ork addon to the dev package" echo " -b build a deb (incremental)"
echo " -b build a deb (incremental, all platforms)"
echo " -B build a deb (complete recompile)" echo " -B build a deb (complete recompile)"
echo " -c core Pd source tarball" echo " -c core Pd source tarball"
echo " -e everything"
echo " -f full installer (incremental)" echo " -f full installer (incremental)"
echo " -F full installer (complete recompile)" echo " -F full installer (complete recompile)"
echo " -k keep previous build products"
echo " -n skip package creation (-bB, -fF)" echo " -n skip package creation (-bB, -fF)"
echo " -R build a Raspberry Pi deb (complete recompile)" echo " -R build a Raspberry Pi deb (complete recompile)"
echo " -r build a Raspberry Pi deb (incremental)" echo " -r build a Raspberry Pi deb (incremental)"
echo " -w install custom version of cwiid system-wide"
echo " -X build an OSX installer (dmg)" echo " -X build an OSX installer (dmg)"
echo " -z build a Windows installer (incremental)" echo " -z build a Windows installer (incremental)"
echo " -Z build a Windows installer (complete recompile)" echo " -Z build a Windows installer (complete recompile)"
echo echo
echo " The incremental options bypass Gem compilation. This saves"
echo " (lots of) time if Gem has already been built previously."
echo
echo " The -k (keep) option doesn't clean before compilation,"
echo " keeping the build products from a previous run. This also"
echo " saves time if the script has been run previously."
echo
echo " For custom install locations do the following before" echo " For custom install locations do the following before"
echo " running this script:" echo " running this script:"
echo echo
...@@ -38,20 +43,17 @@ then ...@@ -38,20 +43,17 @@ then
exit 1 exit 1
fi fi
addon=0
deb=0 deb=0
core=0 core=0
full=0 full=0
sys_cwiid=0
rpi=0 rpi=0
pkg=1 pkg=1
inno=0 inno=0
dmg=0 dmg=0
clean=1
while getopts ":abBcdefFnRruwXzZ" Option while getopts ":bBcfFknRrXzZ" Option
do case $Option in do case $Option in
a) addon=1;;
b) deb=1 b) deb=1
inst_dir=${inst_dir:-/usr};; inst_dir=${inst_dir:-/usr};;
...@@ -60,14 +62,12 @@ do case $Option in ...@@ -60,14 +62,12 @@ do case $Option in
c) core=1;; c) core=1;;
e) addon=1
core=1
full=1;;
f) full=1;; f) full=1;;
F) full=2;; F) full=2;;
k) clean=0;;
n) pkg=0;; n) pkg=0;;
R) deb=2 R) deb=2
...@@ -78,9 +78,6 @@ do case $Option in ...@@ -78,9 +78,6 @@ do case $Option in
inst_dir=/usr inst_dir=/usr
rpi=1;; rpi=1;;
w) sys_cwiid=1
;;
X) dmg=1 X) dmg=1
inst_dir=/usr;; inst_dir=/usr;;
...@@ -109,6 +106,8 @@ if [[ $os == "darwin" ]]; then ...@@ -109,6 +106,8 @@ if [[ $os == "darwin" ]]; then
os=osx os=osx
fi fi
# XXXTODO: If no build target has been set, we should pick one by default.
# Fetch the nw.js binary if we haven't already. We want to fetch it even # Fetch the nw.js binary if we haven't already. We want to fetch it even
# for building with no libs, so we do it regardless of the options # for building with no libs, so we do it regardless of the options
echo nwjs-sdk-v0.16.0-`uname | tr '[:upper:]' '[:lower:]'` echo nwjs-sdk-v0.16.0-`uname | tr '[:upper:]' '[:lower:]'`
...@@ -211,8 +210,9 @@ then ...@@ -211,8 +210,9 @@ then
if [ $full -eq 2 -o $deb -eq 2 -o $inno -eq 2 -o $dmg -eq 2 ] if [ $full -eq 2 -o $deb -eq 2 -o $inno -eq 2 -o $dmg -eq 2 ]
then then
# echo "Since we are doing a complete recompile we are assuming we will need to install l2ork version of the cwiid library. You will need to remove any existing cwiid libraries manually as they will clash with this one. L2Ork version is fully backwards compatible while also offering unique features like full extension support including the passthrough mode. YOU SHOULD REMOVE EXISTING CWIID LIBRARIES PRIOR TO RUNNING THIS INSTALL... You will also have to enter sudo password to install these... Press any key to continue or CTRL+C to cancel install..." if [ $clean -eq 0 ]; then
# read dummy cd externals
else
# clean files that may remain stuck even after doing global make clean (if any) # clean files that may remain stuck even after doing global make clean (if any)
test $os == "osx" && make -C packages/darwin_app clean || true test $os == "osx" && make -C packages/darwin_app clean || true
cd externals/miXed cd externals/miXed
...@@ -229,6 +229,7 @@ then ...@@ -229,6 +229,7 @@ then
rm -f Gem.pd_linux rm -f Gem.pd_linux
aclocal aclocal
./autogen.sh ./autogen.sh
fi
export INCREMENTAL="" export INCREMENTAL=""
else else
cd Gem/ cd Gem/
...@@ -244,7 +245,7 @@ then ...@@ -244,7 +245,7 @@ then
fi fi
if [ $full -gt 1 -o $deb -eq 2 -o $inno -eq 2 -o $dmg -eq 2 ] if [ $full -gt 1 -o $deb -eq 2 -o $inno -eq 2 -o $dmg -eq 2 ]
then then
make distclean || true # this may fail on 1st attempt test $clean -ne 0 && make distclean || true # this may fail on 1st attempt
cp ../../pd/src/g_all_guis.h ../../externals/build/include cp ../../pd/src/g_all_guis.h ../../externals/build/include
cp ../../pd/src/g_canvas.h ../../externals/build/include cp ../../pd/src/g_canvas.h ../../externals/build/include
cp ../../pd/src/m_imp.h ../../externals/build/include cp ../../pd/src/m_imp.h ../../externals/build/include
...@@ -344,14 +345,6 @@ then ...@@ -344,14 +345,6 @@ then
fi fi
fi fi
if [ $addon -eq 1 ]
then
echo "l2ork addons..."
rm -f ../l2ork_addons-`uname -m`-`date +%Y%m%d`.tar.bz2 2> /dev/null
#cp -rf /usr/local/lib/pd/* l2ork_addons/externals/
tar -jcf ../l2ork_addons-`uname -m`-`date +%Y%m%d`.tar.bz2 l2ork_addons
fi
cd l2ork_addons/ cd l2ork_addons/
echo "done." echo "done."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment