Cleanup build log output by removing unnecessary files in a nicer way.

pull/32/head
Dave Page 2020-04-24 15:07:50 +01:00
parent d5bfc726c0
commit 64a26b560b
1 changed files with 7 additions and 7 deletions

View File

@ -137,8 +137,8 @@ _create_python_virtualenv() {
# Remove tests # Remove tests
cd site-packages cd site-packages
find . -name "test" -type d -exec rm -rf "{}" \; find . -name "test" -type d -print0 | xargs -0 rm -rf
find . -name "tests" -type d -exec rm -rf "{}" \; find . -name "tests" -type d -print0 | xargs -0 rm -rf
# Link the python<version> directory to python so that the private environment path is found by the application. # Link the python<version> directory to python so that the private environment path is found by the application.
if test -d ${DIR_PYMODULES_PATH}; then if test -d ${DIR_PYMODULES_PATH}; then
@ -185,7 +185,7 @@ _complete_bundle() {
fi fi
# Remove any TCL-related files that may cause us problems # Remove any TCL-related files that may cause us problems
find "${BUILDROOT}/${APP_BUNDLE_NAME}/Contents/Resources/${VIRTUALENV}/" -name "_tkinter*" -exec rm -f "{}" \; find "${BUILDROOT}/${APP_BUNDLE_NAME}/Contents/Resources/${VIRTUALENV}/" -name "_tkinter*" -print0 | xargs -0 rm -f
# run complete-bundle to copy the dependent libraries and frameworks and fix the rpaths # run complete-bundle to copy the dependent libraries and frameworks and fix the rpaths
./complete-bundle.sh "${BUILDROOT}/${APP_BUNDLE_NAME}" || { echo complete-bundle.sh failed; exit 1; } ./complete-bundle.sh "${BUILDROOT}/${APP_BUNDLE_NAME}" || { echo complete-bundle.sh failed; exit 1; }
@ -202,9 +202,9 @@ _complete_bundle() {
cd "${BUILDROOT}/${APP_BUNDLE_NAME}/Contents/Resources/web" cd "${BUILDROOT}/${APP_BUNDLE_NAME}/Contents/Resources/web"
rm -f pgadmin4.db config_local.* rm -f pgadmin4.db config_local.*
rm -rf karma.conf.js package.json node_modules/ regression/ tools/ pgadmin/static/js/generated/.cache rm -rf karma.conf.js package.json node_modules/ regression/ tools/ pgadmin/static/js/generated/.cache
find . -name "tests" -type d -exec rm -rf "{}" \; find . -name "tests" -type d -print0 | xargs -0 rm -rf
find . -name "feature_tests" -type d -exec rm -rf "{}" \; find . -name "feature_tests" -type d -print0 | xargs -0 rm -rf
find . -name ".DS_Store" -exec rm -f "{}" \; find . -name ".DS_Store" -print0 | xargs -0 rm -f
echo "SERVER_MODE = False" > config_distro.py echo "SERVER_MODE = False" > config_distro.py
echo "HELP_PATH = '../../../docs/en_US/html/'" >> config_distro.py echo "HELP_PATH = '../../../docs/en_US/html/'" >> config_distro.py
@ -215,7 +215,7 @@ _complete_bundle() {
# Remove the .pyc files if any # Remove the .pyc files if any
cd "${BUILDROOT}/${APP_BUNDLE_NAME}" cd "${BUILDROOT}/${APP_BUNDLE_NAME}"
find . -name *.pyc | xargs rm -f find . -name *.pyc -print0 | xargs -0 rm -f
} }
_framework_config() { _framework_config() {