diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-04 19:33:41 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-04 19:33:41 +0100 |
commit | 6200f9a3c47770119abbb8b563ba32a0ea363949 (patch) | |
tree | e08fe8d48ca91d92e9d604df40d3fcbf4785b42b /Makefile | |
parent | 6b3f0ad04550060fd25b87b68c3f9bc1602f3226 (diff) | |
download | Front-6200f9a3c47770119abbb8b563ba32a0ea363949.tar.gz Front-6200f9a3c47770119abbb8b563ba32a0ea363949.tar.zst Front-6200f9a3c47770119abbb8b563ba32a0ea363949.zip |
Add build_release in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -5,3 +5,18 @@ install: | |||
5 | 5 | ||
6 | clean: | 6 | clean: |
7 | rm -rf vendor | 7 | rm -rf vendor |
8 | |||
9 | release_version = $(shell git describe --tags --always) | ||
10 | release_file = front_$(release_version).tar.gz | ||
11 | folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/front | ||
12 | |||
13 | build_release: | ||
14 | git archive HEAD -o $(release_file) | ||
15 | mv $(release_file) $(folder) | ||
16 | @echo "====== Version information ======" | ||
17 | @echo "$(release_version)" | ||
18 | @echo -n "sha256: " | ||
19 | @sha256sum $(folder)/$(release_file) | cut -d' ' -f1 | ||
20 | @echo "=================================" | ||
21 | |||
22 | |||