diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh index 0ca711cf0e518f6337f5e3a274b8072c24bcce2e..359f6c8defab2ddbda5e8948dbed9287164ee89c 100755 --- a/l2ork_addons/tar_em_up.sh +++ b/l2ork_addons/tar_em_up.sh @@ -14,8 +14,9 @@ then echo " -u full installer for end-users without sudo" echo echo " Options for devs only (please ignore):" - echo " -b build a deb (incremental)" + echo " -b build a deb (incremental, all platforms)" echo " -B build a deb (complete recompile)" + echo " -R build a Raspberry Pi deb (complete recompile)" echo " -f full installer (incremental)" echo " -F full installer (complete recompile)" echo " -w do not install cwiid system-wide" @@ -29,10 +30,11 @@ core=0 dev=0 full=0 no_cwiid=0 +rpi=0 inst_dir=/usr/local -while getopts ":abBcdefFuw" Option +while getopts ":abBcdefFRuw" Option do case $Option in a) addon=1;; @@ -42,6 +44,10 @@ do case $Option in B) deb=2 inst_dir=/usr;; + R) deb=2 + inst_dir=/usr + rpi=1;; + c) core=1;; d) dev=1;; @@ -225,6 +231,15 @@ then make distclean rm -rf build/ fi + if [ $rpi -eq 0 ] + then + echo "installing desktop version..." + cp -f debian/control.desktop debian/control + else + echo "installing raspbian version..." + cp -f debian/control.raspbian debian/control + cat ../../externals/OSCx/src/Makefile | sed -e s/-lpd//g > ../../externals/OSCx/src/Makefile + fi make install prefix=$inst_dir echo "copying l2ork-specific externals..." # patch_name