diff options
| author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-06-07 20:37:52 +0200 |
|---|---|---|
| committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-06-07 20:43:17 +0200 |
| commit | 0fae9a5e9b5acac1b2ea28a9e5e77efadf0dbddc (patch) | |
| tree | 4b21f4deaa38256803200eb9243a4233ceaf6e46 /Makefile | |
| parent | 91db27900b3b410c69d8dec67fa473b2b72a1301 (diff) | |
| download | matterbridge-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-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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\//' |
