Last change
on this file since 427 was 380, checked in by alloc, 2 years ago |
Moved legacy web files to weblegacy
|
File size:
1.2 KB
|
Rev | Line | |
---|
[309] | 1 | HOST=136.243.11.25
|
---|
[224] | 2 | PORT=51010
|
---|
[375] | 3 | SERVERPATH=/srv/www/illy.bz/http/fi/7dtd2/
|
---|
[224] | 4 |
|
---|
[246] | 5 | $(shell cd .. && ./versions.sh > bin/Mods/Allocs_CommonFunc/7dtd-server-fixes_version.txt)
|
---|
[230] | 6 | VERSIONFILE=../bin/Mods/Allocs_CommonFunc/7dtd-server-fixes_version.txt
|
---|
[244] | 7 | VERSION=$(shell cat ${VERSIONFILE} | grep "Combined" | cut -d\ -f2)
|
---|
[224] | 8 | ARCHIVENAME=server_fixes_v${VERSION}.tar.gz
|
---|
| 9 |
|
---|
| 10 | build: CONTENTS ${ARCHIVENAME}
|
---|
| 11 | @echo Bundle built successfully
|
---|
| 12 |
|
---|
| 13 | all: build upload
|
---|
| 14 | @echo Bundle built and uploaded
|
---|
| 15 |
|
---|
| 16 | upload: ${ARCHIVENAME}
|
---|
| 17 | @echo Uploading files...
|
---|
| 18 | @scp -P ${PORT} ${ARCHIVENAME} ${VERSIONFILE} ${HOST}:${SERVERPATH}
|
---|
| 19 | @ssh -p ${PORT} ${HOST} "cd ${SERVERPATH}; rm -f server_fixes.tar.gz; ln -s ${ARCHIVENAME} server_fixes.tar.gz"
|
---|
| 20 |
|
---|
| 21 | ${ARCHIVENAME}: CONTENTS
|
---|
| 22 | @echo Creating archive...
|
---|
[238] | 23 | @tar -czf ${ARCHIVENAME} Mods
|
---|
[224] | 24 |
|
---|
| 25 | CONTENTS: SERVERFIXES
|
---|
| 26 |
|
---|
| 27 | SERVERFIXES:
|
---|
| 28 | @echo Copying server fixes...
|
---|
[232] | 29 | @rm Mods -Rf
|
---|
[224] | 30 | @mkdir -p Mods
|
---|
| 31 | @cp ../bin/Mods/* Mods/ -R
|
---|
[380] | 32 | @mkdir -p Mods/Allocs_WebAndMapRendering/weblegacy
|
---|
| 33 | @cp ../weblegacy/* Mods/Allocs_WebAndMapRendering/weblegacy/ -R
|
---|
| 34 | @rm Mods/Allocs_WebAndMapRendering/weblegacy/protect -f
|
---|
[224] | 35 | @find . -name "*~" -exec rm {} \;
|
---|
| 36 |
|
---|
| 37 | clean:
|
---|
| 38 | @echo Cleaning intermediate stuff...
|
---|
[238] | 39 | @rm -Rf Mods server_fixes_v*.tar.gz
|
---|
[224] | 40 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.