diff --git a/build_release.sh b/build_release.sh new file mode 100644 index 0000000000000000000000000000000000000000..b81b9af1ff739d452656eb89b7718d0e4084175c --- /dev/null +++ b/build_release.sh @@ -0,0 +1,18 @@ +#!/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} \ No newline at end of file