From 09ff9f6e86e7dc2c72deb5d6ed9a77aba94f769d Mon Sep 17 00:00:00 2001 From: Benjamin Dweck Date: Thu, 22 Oct 2020 09:24:45 +0200 Subject: [PATCH] Modified build script to make signing optional --- build-deb.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build-deb.sh b/build-deb.sh index 21e9f11..5ceeeeb 100755 --- a/build-deb.sh +++ b/build-deb.sh @@ -2,12 +2,12 @@ if [[ -z "${DEB_EMAIL}" ]]; then DEB_EMAIL="$1" + DPKG_BUILD_OPTS=-k"$DEB_EMAIL" fi if [[ -z "${DEB_EMAIL}" ]]; then - echo "E-mail address required for packaging signing with gpg key!" - echo "Usage: ./build-deb.sh EMAIL" - exit 1 + DEB_EMAIL="none@none.com" + DPKG_BUILD_OPTS="-us -uc" fi TORCH_VERSION=$(git describe --tags --abbrev=0) @@ -31,4 +31,4 @@ cd "$PROJECT" || exit export USER USER=$(whoami) dh_make --createorig -e "$DEB_EMAIL" -s -y -dpkg-buildpackage -k"$DEB_EMAIL" +dpkg-buildpackage $DPKG_BUILD_OPTS