Rev | Line | |
---|
[224] | 1 | HOST=178.63.97.203
|
---|
| 2 | PORT=51010
|
---|
| 3 | SERVERPATH=/srv/www/illy.bz/http/fi/7dtd/
|
---|
| 4 |
|
---|
[230] | 5 | VERSIONFILE=../bin/Mods/Allocs_CommonFunc/7dtd-server-fixes_version.txt
|
---|
[224] | 6 | VERSION=$(shell cat ${VERSIONFILE} | grep "Version" | cut -d\ -f8)
|
---|
| 7 | ARCHIVENAME=server_fixes_v${VERSION}.tar.gz
|
---|
| 8 |
|
---|
| 9 | build: CONTENTS ${ARCHIVENAME}
|
---|
| 10 | @echo Bundle built successfully
|
---|
| 11 |
|
---|
| 12 | all: build upload
|
---|
| 13 | @echo Bundle built and uploaded
|
---|
| 14 |
|
---|
| 15 | upload: ${ARCHIVENAME}
|
---|
| 16 | @echo Uploading files...
|
---|
| 17 | @scp -P ${PORT} ${ARCHIVENAME} ${VERSIONFILE} ${HOST}:${SERVERPATH}
|
---|
| 18 | @ssh -p ${PORT} ${HOST} "cd ${SERVERPATH}; rm -f server_fixes.tar.gz; ln -s ${ARCHIVENAME} server_fixes.tar.gz"
|
---|
| 19 |
|
---|
| 20 | ${ARCHIVENAME}: CONTENTS
|
---|
| 21 | @echo Creating archive...
|
---|
| 22 | @tar -czf ${ARCHIVENAME} 7DaysToDie_Data Mods
|
---|
| 23 |
|
---|
| 24 | CONTENTS: SERVERFIXES
|
---|
| 25 |
|
---|
| 26 | SERVERFIXES:
|
---|
| 27 | @echo Copying server fixes...
|
---|
[230] | 28 | @rm 7DaysToDie_Data -R
|
---|
| 29 | @rm Mods -R
|
---|
[224] | 30 | @mkdir -p 7DaysToDie_Data/Managed
|
---|
[230] | 31 | @cp ../7dtd-binaries/Assembly-CSharp.dll 7DaysToDie_Data/Managed/Assembly-CSharp.dll
|
---|
[224] | 32 | @mkdir -p Mods
|
---|
| 33 | @cp ../bin/Mods/* Mods/ -R
|
---|
[230] | 34 | @mkdir -p Mods/Allocs_WebAndMapRendering/webserver
|
---|
| 35 | @cp ../webserver/* Mods/Allocs_WebAndMapRendering/webserver/ -R
|
---|
| 36 | @rm Mods/Allocs_WebAndMapRendering/webserver/protect -f
|
---|
[224] | 37 | @find . -name "*~" -exec rm {} \;
|
---|
| 38 |
|
---|
| 39 | clean:
|
---|
| 40 | @echo Cleaning intermediate stuff...
|
---|
| 41 | @rm -Rf 7DaysToDie_Data Mods server_fixes_v*.tar.gz
|
---|
| 42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.