aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-06-07 20:37:52 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-06-07 20:43:17 +0200
commit0fae9a5e9b5acac1b2ea28a9e5e77efadf0dbddc (patch)
tree4b21f4deaa38256803200eb9243a4233ceaf6e46 /Makefile
parent91db27900b3b410c69d8dec67fa473b2b72a1301 (diff)
downloadmatterbridge-0fae9a5e9b5acac1b2ea28a9e5e77efadf0dbddc.tar.gz
matterbridge-0fae9a5e9b5acac1b2ea28a9e5e77efadf0dbddc.tar.bz2
matterbridge-0fae9a5e9b5acac1b2ea28a9e5e77efadf0dbddc.zip
Makefile: matterbridge.tar.xz: fix various issues
- Files in the Guix store are read-only, And the tarball has to get write permissions to be updated, however a typo made the +w become +x. - To update the tarball, we need it to be uncompressed. So we do uncompress it to add the service file, but that can fail if there is an existing matterbridge.tar already there. So we simply rm matterbridge.tar to fix it. Not using compressed tarballs as inputs have the side effect of increasing the store size as each different builds of matterbridge.tar.xz is stored in the store. - A whitespace issue was fixed. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c39c5ca..00601fe 100644
--- a/Makefile
+++ b/Makefile
@@ -5,20 +5,22 @@ all: help
help:
@echo "Available commands:"
@echo -en "\tmake matterbridge.tar.xz"
- @echo " # Create a tarball with the matterbridge binary and service file"
+ @echo -n " # Create a tarball with the matterbridge binary and service"
+ @echo " file"
@echo -en "\tmake matterbridge.toml "
@echo -n " # Create the matterbridge configuration."
@echo " Requires credentials .netrc"
matterbridge.tar.xz:
rm -f $@
+ rm -f matterbridge.tar
cp `guix pack \
--save-provenance -RR \
--compression=xz \
matterbridge \
--symlink=/usr/bin/matterbridge=bin/matterbridge` $@
unxz $@
- chmod +x matterbridge.tar
+ chmod +w matterbridge.tar
tar -rf matterbridge.tar \
matterbridge.service \
--transform='s/^/.\/etc\/systemd\/system\//'