Preliminary preparations for deployment are set up
This commit is contained in:
47
Makefile
Normal file
47
Makefile
Normal file
@@ -0,0 +1,47 @@
|
||||
|
||||
# UPDATE_PATH=/srv/slt-update
|
||||
PACKAGES = clubs.tar.gz
|
||||
|
||||
export DL_PREFIX=https://slt.wolf-stuttgart.net/update/com_clubs
|
||||
|
||||
RSYNC_OPTIONS=-rltDz --delete --delete-delay --delete-excluded --exclude '.gitignore' --exclude '.dummy'
|
||||
RSYNC_USER=christian
|
||||
RSYNC_HOST=hh.wolf-stuttgart.net
|
||||
DL_PATH=/srv/http/slt/update/com_clubs
|
||||
|
||||
all: package
|
||||
|
||||
package: $(PACKAGES)
|
||||
|
||||
.PHONY: clubs.tar.gz
|
||||
clubs.tar.gz:
|
||||
tar czf $@ -C src .
|
||||
|
||||
.PHONY: release
|
||||
release: clubs.tar.gz
|
||||
./scripts/create-release.sh
|
||||
|
||||
.PHONY: release-force
|
||||
release-force: clubs.tar.gz
|
||||
./scripts/create-release.sh -f
|
||||
|
||||
.PHONY: upload
|
||||
upload: release
|
||||
$(MAKE) reupload
|
||||
|
||||
.PHONY: slt-update.xml
|
||||
slt-update.xml:
|
||||
./scripts/create-update-xml.sh
|
||||
|
||||
.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
|
||||
# update: $(PACKAGES)
|
||||
# cp slt.xml slt1.tar.gz $(UPDATE_PATH)
|
||||
Reference in New Issue
Block a user