-
Jens Steidl authored
- added simple release build script: adds version & release date to script, packages it into a zip archive
Jens Steidl authored- added simple release build script: adds version & release date to script, packages it into a zip archive
build_release.sh 637 B
#!/usr/bin/bash
# Release build under Debian 10
DATE="$(date +%F)"
BRANCH="$(git branch --show-current)"
VERSION="$(git rev-list HEAD --count)-$BRANCH"
BUILD_ZIP="SLUB_SIP_Builder.version-${VERSION}.zip"
BUILD_DIR="SLUB_SIP_Builder"
rm -rf ${BUILD_ZIP}
rsync -av --exclude='.git' --exclude='.idea' - --exclude='_Deparsed_XSubs.pm' \
--exclude='build_release.sh' --exclude='.gitignore' --exclude='tmp' ./ ${BUILD_DIR}
sed -i "/^#.*FILE:.*/a \
#\n\
# VERSION: ${VERSION}\n\
# RELEASE DATE: ${DATE}" ${BUILD_DIR}/bin/slubsipbuilderbagit.pl
cd ${BUILD_DIR}; zip -r ../${BUILD_ZIP} .; cd ..
rm -rf ${BUILD_DIR}