From 2b2fa867f058e649cb7502ac36e5de2334108b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ci=C4=99=C5=BCarkiewicz?= Date: Tue, 9 Jul 2013 12:19:31 +0200 Subject: [PATCH 1/2] Exit if `dpkg-buildpackage` fails. --- debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian.sh b/debian.sh index ac26380e..10cbf61e 100755 --- a/debian.sh +++ b/debian.sh @@ -23,7 +23,7 @@ mv ../PyBitmessage ../${APP}-${VERSION} make source # Build the package -dpkg-buildpackage -A +dpkg-buildpackage -A || exit 1 # change the directory name back mv ../${APP}-${VERSION} ../PyBitmessage -- 2.45.1 From e4869514ca79d4f8564a584304109b5244151b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ci=C4=99=C5=BCarkiewicz?= Date: Tue, 9 Jul 2013 12:19:54 +0200 Subject: [PATCH 2/2] Add `make uninstall`. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index afb6744e..cacc103f 100755 --- a/Makefile +++ b/Makefile @@ -35,6 +35,14 @@ install: install -m 644 desktop/can-icon.svg ${DEST_SHARE}/icons/hicolor/scalable/apps/${APP}.svg install -m 644 desktop/can-icon.svg ${DEST_SHARE}/pixmaps/${APP}.svg +uninstall: + rm -Rf "${DEST_APP}" + rm -f "${DESTDIR}/usr/bin/${APP}" + rm -f "${DEST_SHARE}/applications/${APP}.desktop" + rm -f "${DEST_SHARE}/icons/hicolor/24x24/apps/${APP}.png" + rm -f "${DEST_SHARE}/icons/hicolor/scalable/apps/${APP}.svg" + rm -f "${DEST_SHARE}/pixmaps/${APP}.svg" + clean: rm -rf debian/${APP} rm -f ../${APP}_*.deb ../${APP}_*.asc ../${APP}_*.dsc ../${APP}*.changes -- 2.45.1