aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2020-01-25 16:11:13 -0500
committerJason Woodward2020-01-25 16:11:13 -0500
commit3e259608dffd5261fbf338b06855364d8f3d65bd (patch)
treecbf2c264423b53e4e8d91406635f473faf169d4c
parent4c51ce804cdf0afcbbce62885de9d922929db2ba (diff)
downloadslapt-get-3e259608dffd5261fbf338b06855364d8f3d65bd.tar.gz
fail when building a package if permissions cannot be set
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 86414ac..41774f4 100644
--- a/Makefile
+++ b/Makefile
@@ -115,8 +115,8 @@ dopkg: $(PACKAGE)
mkdir -p pkg/usr/man/uk/man8
for i in `ls po/ --ignore=slapt-get.pot --ignore='*~*' |sed 's/.po//'` ;do mkdir -p pkg$(PACKAGE_LOCALE_DIR)/$$i/LC_MESSAGES; msgfmt -o pkg$(PACKAGE_LOCALE_DIR)/$$i/LC_MESSAGES/slapt-get.mo po/$$i.po; done
cp -f $(PACKAGE) ./pkg/$(SBINDIR)
- -chown $$(stat --format "%u:%g" /usr/sbin) ./pkg/$(SBINDIR)
- -chown $$(stat --format "%u:%g" /usr/sbin) ./pkg/$(SBINDIR)/$(PACKAGE)
+ chown $$(stat --format "%u:%g" /usr/sbin) ./pkg/$(SBINDIR)
+ chown $$(stat --format "%u:%g" /usr/sbin) ./pkg/$(SBINDIR)/$(PACKAGE)
$(STRIP) ./pkg/$(SBINDIR)/$(PACKAGE)
cp -f $(RCSOURCE) pkg/etc/slapt-get/slapt-getrc.new
mkdir -p ./pkg/usr/doc/$(PACKAGE)-$(VERSION)/
@@ -139,7 +139,7 @@ dopkg: $(PACKAGE)
cp -f src/libslapt.so.$(VERSION) pkg$(LIBDIR)/
$(STRIP) pkg$(LIBDIR)/libslapt.so.$(VERSION)
( cd pkg$(LIBDIR); ln -sf libslapt.so.$(VERSION) libslapt.so )
- -( cd pkg; /sbin/makepkg -l y -c n ../$(PACKAGE)-$(VERSION)-$(ARCH)-$(RELEASE).txz )
+ ( cd pkg; /sbin/makepkg -l y -c n ../$(PACKAGE)-$(VERSION)-$(ARCH)-$(RELEASE).txz )
po_file:
-xgettext -o po/slapt-get.pot.new -sC --no-location src/*.c src/*.h