Skip to content
Snippets Groups Projects
Commit 1dc894a7 authored by Jens Steidl's avatar Jens Steidl :baby_chick: Committed by Andreas Romeyke
Browse files

- updated build script: added subdir, added excludes

parent 127e22ba
Branches
Tags
No related merge requests found
...@@ -5,15 +5,19 @@ DATE="$(date +%F\ %T)" ...@@ -5,15 +5,19 @@ DATE="$(date +%F\ %T)"
BRANCH="$(git branch --show-current)" BRANCH="$(git branch --show-current)"
VERSION="$(git rev-list HEAD --count)-$BRANCH" VERSION="$(git rev-list HEAD --count)-$BRANCH"
BUILD_ZIP="SLUB_SIP_Builder.version-${VERSION}.zip" BUILD_ZIP="SLUB_SIP_Builder.version-${VERSION}.zip"
BUILD_DIR="SLUB_SIP_Builder" BUILD_DIR="build"
BUILD_ROOT="${BUILD_DIR}/SLUB_SIP_Builder"
BUILD_SCRIPT=$(basename "$0")
rm -rf ${BUILD_ZIP} rm -rf ${BUILD_ZIP}
rsync -av --exclude='.git' --exclude='.idea' - --exclude='_Deparsed_XSubs.pm' \ rm -rf ${BUILD_DIR}
--exclude='build_release.sh' --exclude='.gitignore' --exclude='tmp' \ mkdir -p ${BUILD_ROOT}
--exclude='*.zip' ./ ${BUILD_DIR} rsync -av --exclude='.git' --exclude='.idea' --exclude='_Deparsed_XSubs.pm' \
--exclude='.gitignore' --exclude='tmp' \ --exclude='*.zip' \
--exclude=${BUILD_SCRIPT} --exclude=${BUILD_DIR}/ ./ ${BUILD_ROOT}
sed -i "/^#.*FILE:.*/a \ sed -i "/^#.*FILE:.*/a \
#\n\ #\n\
# VERSION: ${VERSION}\n\ # VERSION: ${VERSION}\n\
# RELEASE DATE: ${DATE}" ${BUILD_DIR}/bin/slubsipbuilderbagit.pl # RELEASE DATE: ${DATE}" ${BUILD_ROOT}/bin/slubsipbuilderbagit.pl
cd ${BUILD_DIR}; zip -r ../${BUILD_ZIP} .; cd .. cd ${BUILD_DIR}; zip -r ../${BUILD_ZIP} .; cd ..
rm -rf ${BUILD_DIR} rm -rf ${BUILD_DIR}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment