From e215915a0f38f3bca3994d51b9a2942a45de5356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Sch=C3=BCle?= Date: Thu, 14 May 2020 09:02:13 +0200 Subject: [PATCH] fix(build): remove tine20 custom apps from vendor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... also add some TODOs Change-Id: Iaa153d8eba3f3d04c28145e78be5f18f10b982b7 Reviewed-on: http://gerrit.tine20.com/customers/16633 Reviewed-by: Philipp Schüle Tested-by: Philipp Schüle --- ci/dockerimage/build/build_script.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ci/dockerimage/build/build_script.sh b/ci/dockerimage/build/build_script.sh index 1c686f105c2..73ef820ded2 100644 --- a/ci/dockerimage/build/build_script.sh +++ b/ci/dockerimage/build/build_script.sh @@ -1,3 +1,5 @@ +# TODO move this to a better place - /scripts/build for example (as this should not be usable in docker/ci context only) +# TODO refactor cleanup/packaging -> copy stuff that is needed to a different dir and keep files that go into the packages function activateReleaseMode() { # utc datetime, like this: 2013-09-24 14:27:06 @@ -118,6 +120,13 @@ function cleanup() rm -rf ${TINE20ROOT}/tine20/vendor/phpdocumentor rm -rf ${TINE20ROOT}/tine20/vendor/ezyang/htmlpurifier/{art,benchmarks,extras,maintenance,smoketests} + # remove tine20 custom apps - they are handled in a different way + for CUSTOMAPP in `ls $TEMPDIR/tine20/vendor/metaways`; do + if [ $CUSTOMAPP != "opendocument" ] && [ $CUSTOMAPP != "timezoneconvert" ]; then + rm -rf $TEMPDIR/tine20vendor/metaways/$CUSTOMAPP + fi + done + find ${TINE20ROOT}/tine20/vendor -name .gitignore -type f -print0 | xargs -0 rm -rf find ${TINE20ROOT}/tine20/vendor -name .git -type d -print0 | xargs -0 rm -rf find ${TINE20ROOT}/tine20/vendor -name docs -type d -print0 | xargs -0 rm -rf