Created scripts to allow for deployment of versions of the template

This addresses the issue #19.
This commit is contained in:
Christian Wolf
2019-03-25 15:45:27 +01:00
parent 1ff64fa26e
commit 2ca0dff6c0
8 changed files with 71 additions and 10 deletions

View File

@@ -2,6 +2,13 @@
# UPDATE_PATH=/srv/slt-update
PACKAGES = slt.tar.gz
export DL_PREFIX=https://slt.wolf-stuttgart.net/update/template
RSYNC_OPTIONS=-rltDz --delete --delete-delay --delete-excluded --exclude '.gitignore'
RSYNC_USER=christian
RSYNC_HOST=hh.wolf-stuttgart.net
DL_PATH=/srv/http/slt/update/template
all: package
package: $(PACKAGES)
@@ -11,13 +18,24 @@ slt.tar.gz:
cd slt ; tar czf ../$@ *
.PHONY: release
release:
release: slt.tar.gz
./scripts/create-release.sh
.PHONY: upload
upload:
upload: release
$(MAKE) reupload
.PHONY: slt-update.xml
slt-update.xml:
./scripts/create-update-xml.sh
# rsync -a releases/ $UPDATE_PATH/rel
.PHONY: reupload
reupload: slt-update.xml
@echo Pushing files
@rsync $(RSYNC_OPTIONS) releases/ $(RSYNC_USER)@$(RSYNC_HOST):$(DL_PATH)/files -v
@echo Pushing XML configuration
@rsync $(RSYNC_OPTIONS) slt-update.xml $(RSYNC_USER)@$(RSYNC_HOST):$(DL_PATH)
#
# .PHONY: update