makefile
This commit is contained in:
parent
5173f512e7
commit
5eace1c2dd
1 changed files with 4 additions and 3 deletions
7
makefile
7
makefile
|
@ -1,6 +1,6 @@
|
||||||
GITHASH := $(shell git rev-parse --short HEAD)$(shell git diff-index --quiet HEAD || echo "-dirty")
|
GITHASH := $(shell git rev-parse --short HEAD)$(shell git diff-index --quiet HEAD || echo "-dirty")
|
||||||
|
|
||||||
TARNAME := xl-imbus-$(GITHASH).tar.gz
|
TARNAME := xl-imbus_$(GITHASH).tar.gz
|
||||||
DIRNAME := xl
|
DIRNAME := xl
|
||||||
|
|
||||||
run:
|
run:
|
||||||
|
@ -32,10 +32,11 @@ tar: $(TARNAME)
|
||||||
sign: $(TARNAME).minisig
|
sign: $(TARNAME).minisig
|
||||||
|
|
||||||
publish: $(TARNAME) $(TARNAME).minisig
|
publish: $(TARNAME) $(TARNAME).minisig
|
||||||
# Assert git is clean
|
|
||||||
@git diff-index --quiet HEAD || (echo "git is dirty, commit changes first"; exit 1)
|
@git diff-index --quiet HEAD || (echo "git is dirty, commit changes first"; exit 1)
|
||||||
ssh server mkdir -p /public/$(DIRNAME)
|
ssh server mkdir -p /public/$(DIRNAME)
|
||||||
rsync -avz $(TARNAME) server:/public/$(DIRNAME)/$(TARNAME)
|
|
||||||
rsync -avz $(TARNAME).minisig server:/public/$(DIRNAME)/$(TARNAME).minisig
|
rsync -avz $(TARNAME).minisig server:/public/$(DIRNAME)/$(TARNAME).minisig
|
||||||
|
rsync -avz $(TARNAME) server:/public/$(DIRNAME)/$(TARNAME)
|
||||||
|
ssh server ln -sf /public/$(DIRNAME)/$(TARNAME).minisig /public/$(DIRNAME)/latest.tar.gz.minisig
|
||||||
|
ssh server ln -sf /public/$(DIRNAME)/$(TARNAME) /public/$(DIRNAME)/latest.tar.gz
|
||||||
|
|
||||||
.PHONY: run watch build clean test archive sign publish
|
.PHONY: run watch build clean test archive sign publish
|
||||||
|
|
Loading…
Reference in a new issue