From e0e4dcba2c1b0a464a3ddd552f4f4acc16460a0d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 10 Jan 2021 01:18:07 +0000 Subject: [PATCH] dpkg: Use defaults if DEBEMAIL or DEBFULLNAME have not been set This makes it easier to build a Debian package. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9332 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- Makefile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 8eb917e75..7ef193fdb 100644 --- a/Makefile +++ b/Makefile @@ -358,14 +358,8 @@ debian/changelog: debian/changelog.in mv "scst-$(VERSION).tar.xz" "$@" dpkg: ../scst_$(VERSION).orig.tar.gz - @if [ -z "$$DEBEMAIL" ]; then \ - echo "Error: \$$DEBEMAIL has not been set"; \ - false; \ - fi && \ - if [ -z "$$DEBFULLNAME" ]; then \ - echo "Error: \$$DEBFULLNAME has not been set"; \ - false; \ - fi && \ + @[ -z "$$DEBEMAIL" ] || export DEBEMAIL=bvanassche@acm.org && \ + [ -z "$$DEBFULLNAME" ] || export DEBFULLNAME="Bart Van Assche" &&\ sed 's/%{scst_version}/$(VERSION)/' \ debian/scst.dkms && \ output_files=( \