Modified build script to make signing optional

master
B.J. Dweck 2020-10-22 09:24:45 +02:00
parent 8bc211d413
commit 09ff9f6e86
1 changed files with 4 additions and 4 deletions

View File

@ -2,12 +2,12 @@
if [[ -z "${DEB_EMAIL}" ]]; then if [[ -z "${DEB_EMAIL}" ]]; then
DEB_EMAIL="$1" DEB_EMAIL="$1"
DPKG_BUILD_OPTS=-k"$DEB_EMAIL"
fi fi
if [[ -z "${DEB_EMAIL}" ]]; then if [[ -z "${DEB_EMAIL}" ]]; then
echo "E-mail address required for packaging signing with gpg key!" DEB_EMAIL="none@none.com"
echo "Usage: ./build-deb.sh EMAIL" DPKG_BUILD_OPTS="-us -uc"
exit 1
fi fi
TORCH_VERSION=$(git describe --tags --abbrev=0) TORCH_VERSION=$(git describe --tags --abbrev=0)
@ -31,4 +31,4 @@ cd "$PROJECT" || exit
export USER export USER
USER=$(whoami) USER=$(whoami)
dh_make --createorig -e "$DEB_EMAIL" -s -y dh_make --createorig -e "$DEB_EMAIL" -s -y
dpkg-buildpackage -k"$DEB_EMAIL" dpkg-buildpackage $DPKG_BUILD_OPTS