Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(build): remove tine20 custom apps from vendor
Browse files Browse the repository at this point in the history
... also add some TODOs

Change-Id: Iaa153d8eba3f3d04c28145e78be5f18f10b982b7
Reviewed-on: http://gerrit.tine20.com/customers/16633
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Tested-by: Philipp Schüle <p.schuele@metaways.de>
  • Loading branch information
pschuele committed May 14, 2020
1 parent 661da59 commit e215915
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e215915

Please sign in to comment.