aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2020-05-09 12:32:28 -0400
committerJason Woodward2020-05-09 12:32:28 -0400
commit2d21c9774cb9621cf32915e4921fee42ff94809c (patch)
treeee0a2f6d6428d85c37284bc9e9918c7e354be99a
parent8b39a03671bc35277f68ac07961b8d946c2ea69f (diff)
downloadslapt-src-2d21c9774cb9621cf32915e4921fee42ff94809c.tar.gz
fix exit status for doinstall script, addressing gh issue #4
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 280d799..11d9354 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,6 +43,6 @@ pkg: all
install slack-desc $(PKGDIR)/install/
install slack-required $(PKGDIR)/install/
install slack-suggests $(PKGDIR)/install/
- @echo "if [ ! -d etc/slapt-get ]; then mkdir -p etc/slapt-get; fi; if [ ! -f etc/slapt-get/slapt-srcrc ]; then mv -f etc/slapt-get/slapt-srcrc.new etc/slapt-get/slapt-srcrc; diff -q etc/slapt-get/slapt-srcrc etc/slapt-get/slapt-srcrc.new >/dev/null 2>&1 && rm etc/slapt-get/slapt-srcrc.new; fi;" > $(PKGDIR)/install/doinst.sh
+ @echo "if [ ! -d etc/slapt-get ]; then mkdir -p etc/slapt-get; fi; if [ ! -f etc/slapt-get/slapt-srcrc ]; then mv -f etc/slapt-get/slapt-srcrc.new etc/slapt-get/slapt-srcrc; else ! diff -q etc/slapt-get/slapt-srcrc etc/slapt-get/slapt-srcrc.new >/dev/null 2>&1 || rm etc/slapt-get/slapt-srcrc.new; fi;" > $(PKGDIR)/install/doinst.sh
( cd $(PKGDIR) && /sbin/makepkg -l y -c n ../@PACKAGE@-@PACKAGE_VERSION@-@host_cpu@-$(PKGREL).txz )