]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/commitdiff
Add build_release in Makefile
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 4 Mar 2018 18:33:41 +0000 (19:33 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 4 Mar 2018 18:33:41 +0000 (19:33 +0100)
Makefile

index d7fe2096c6b3854275c0c4860d3f8ad01ecadbd5..09c412185876de1e4ee1e9fcb9d92914902b0062 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,3 +5,18 @@ install:
 
 clean:
        rm -rf vendor
+
+release_version = $(shell git describe --tags --always)
+release_file = front_$(release_version).tar.gz
+folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/front
+
+build_release:
+       git archive HEAD -o $(release_file)
+       mv $(release_file) $(folder)
+       @echo "====== Version information ======"
+       @echo "$(release_version)"
+       @echo -n "sha256: "
+       @sha256sum $(folder)/$(release_file) | cut -d' ' -f1
+       @echo "================================="
+
+