aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-03-30 00:52:58 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-03-30 01:06:24 +0200
commitd23077cf75db119c9b46996c2bbe4a9a532630da (patch)
tree9217844e482de0bd8301bf5e904d22853b564272
parent67f10dc00b54bf04d293f60c40d7dff3837e236f (diff)
downloadmatterbridge-d23077cf75db119c9b46996c2bbe4a9a532630da.tar.gz
matterbridge-d23077cf75db119c9b46996c2bbe4a9a532630da.tar.bz2
matterbridge-d23077cf75db119c9b46996c2bbe4a9a532630da.zip
Use guix commit in tarball filename
This enables to easily find from which commit a tarball was made. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--.gitignore4
-rw-r--r--Makefile22
2 files changed, 13 insertions, 13 deletions
diff --git a/.gitignore b/.gitignore
index 7829268..56875b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,7 @@
*~
\#.*\#
-matterbridge.tar
-matterbridge.tar.xz
+matterbridge-1d62b15dc1f84b4b57cbc423b880a4b4096fda70.tar
+matterbridge-1d62b15dc1f84b4b57cbc423b880a4b4096fda70.tar.xz
matterbridge.toml
.netrc
diff --git a/Makefile b/Makefile
index 17018f3..9f5b02f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,29 +1,29 @@
GUIX_COMMIT ?= 1d62b15dc1f84b4b57cbc423b880a4b4096fda70
-.PHONY: all matterbridge.tar.xz sync test
+.PHONY: all sync test
all: help
help:
@echo "Available commands:"
- @echo -en "\tmake matterbridge.tar.xz"
+ @echo -en "\tmake matterbridge-$(GUIX_COMMIT).tar.xz"
@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 -en "\tmake matterbridge.toml "
+ @echo -n "# Create the matterbridge configuration."
@echo " Requires credentials .netrc"
- @echo -en "\tmake sync "
+ @echo -en "\tmake sync "
@echo -n "# Deploy the matterbridge.tom configuration in the Replicant "
@echo "server"
- @echo -en "\tmake test "
+ @echo -en "\tmake test "
@echo "# Test the matterbridge.toml configuration locally"
-matterbridge.tar.xz:
+matterbridge-$(GUIX_COMMIT).tar.xz:
rm -f $@
- rm -f matterbridge.tar
+ rm -f matterbridge-$(GUIX_COMMIT).tar
cp `guix time-machine \
--branch=master \
--commit=$(GUIX_COMMIT) \
@@ -34,11 +34,11 @@ matterbridge.tar.xz:
matterbridge \
--symlink=/usr/bin/matterbridge=bin/matterbridge` $@
unxz $@
- chmod +w matterbridge.tar
- tar -rf matterbridge.tar \
+ chmod +w matterbridge-$(GUIX_COMMIT).tar
+ tar -rf matterbridge-$(GUIX_COMMIT).tar \
matterbridge.service \
--transform='s/^/.\/etc\/systemd\/system\//'
- xz -9e -T 2 --verbose matterbridge.tar
+ xz -9e -T 2 --verbose matterbridge-$(GUIX_COMMIT).tar
matterbridge.toml: matterbridge.toml.example generate-matterbridge-config.py
./generate-matterbridge-config.py