Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:gladiac:ig-klettern
routenbuch
prepare_vendor.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File prepare_vendor.sh of Package routenbuch
#!/bin/bash PKG_NAME="routenbuch" PKG_DIR="routenbuch" cleanup_tmpdir() { popd 2>/dev/null rm -rf $BASHLS_TMPDIR } trap cleanup_tmpdir SIGINT cleanup_and_exit() { cleanup_tmpdir if test "$1" = 0 -o -z "$1" ; then exit 0 else exit $1 fi } if [ ! -w "$BASHLS_TARBALL" ]; then wget "$BASHLS_URL" fi pushd "${PKG_DIR}" || cleanup_and_exit 1 git co . git clean -dfx git pull --rebase export YARN_CACHE_FOLDER="$(pwd)/.package-cache" echo ">>>>>> Install npm modules" yarn install --frozen-lockfile if [ $? -ne 0 ]; then echo "ERROR: yarn install failed" cleanup_and_exit 1 fi yarn audit echo ">>>>>> Cleanup object dirs" find "${YARN_CACHE_FOLDER}/" -type d -name "*.o.d" | xargs rm -rf find "${YARN_CACHE_FOLDER}/" -type d -name "__pycache__" | xargs rm -rf echo ">>>>>> Cleanup object files" find ${YARN_CACHE_FOLDER}/ -name "*.node" | xargs rm -rf find ${YARN_CACHE_FOLDER}/ -name "*.dll" | grep -v signal-client | xargs rm -f find ${YARN_CACHE_FOLDER}/ -name "*.dylib" -delete find ${YARN_CACHE_FOLDER}/ -name "*.so" -delete find ${YARN_CACHE_FOLDER}/ -name "*.o" -delete find ${YARN_CACHE_FOLDER}/ -name "*.a" -delete find ${YARN_CACHE_FOLDER}/ -name "*.snyk-*.flag" -delete find ${YARN_CACHE_FOLDER}/ -name "builderror.log" -delete find ${YARN_CACHE_FOLDER}/ -name ".deps" -type d | xargs rm -rf echo ">>>>>> Cleanup build info" find ${YARN_CACHE_FOLDER}/ -name "Makefile" -delete find ${YARN_CACHE_FOLDER}/ -name "*.target.mk" -delete find ${YARN_CACHE_FOLDER}/ -name "config.gypi" -delete find ${YARN_CACHE_FOLDER}/ -name "package.json" -exec sed -i "s#$(pwd)#/tmp#g" {} \; echo ">>>>>> Package vendor files" rm -f ../routenbuch-node-modules.tar.xz XZ_OPT="-T$(nproc)" tar cJf ../routenbuch-node-modules.tar.xz .package-cache if [ $? -ne 0 ]; then cleanup_and_exit 1 fi popd || cleanup_and_exit 1 cleanup_and_exit 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor