Created scripts to allow for deployment of versions of the template
This addresses the issue #19.
This commit is contained in:
24
Makefile
24
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user