Modified build script to make signing optional
This commit is contained in:
parent
8bc211d413
commit
09ff9f6e86
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user