source: binary-improvements/bundle_creation/makefile@ 242

Last change on this file since 242 was 238, checked in by alloc, 9 years ago

Server fixes for A12

File size: 1.1 KB
RevLine 
[224]1HOST=178.63.97.203
2PORT=51010
3SERVERPATH=/srv/www/illy.bz/http/fi/7dtd/
4
[230]5VERSIONFILE=../bin/Mods/Allocs_CommonFunc/7dtd-server-fixes_version.txt
[224]6VERSION=$(shell cat ${VERSIONFILE} | grep "Version" | cut -d\ -f8)
7ARCHIVENAME=server_fixes_v${VERSION}.tar.gz
8
9build: CONTENTS ${ARCHIVENAME}
10 @echo Bundle built successfully
11
12all: build upload
13 @echo Bundle built and uploaded
14
15upload: ${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...
[238]22 @tar -czf ${ARCHIVENAME} Mods
[224]23
24CONTENTS: SERVERFIXES
25
26SERVERFIXES:
27 @echo Copying server fixes...
[232]28 @rm Mods -Rf
[224]29 @mkdir -p Mods
30 @cp ../bin/Mods/* Mods/ -R
[230]31 @mkdir -p Mods/Allocs_WebAndMapRendering/webserver
32 @cp ../webserver/* Mods/Allocs_WebAndMapRendering/webserver/ -R
33 @rm Mods/Allocs_WebAndMapRendering/webserver/protect -f
[224]34 @find . -name "*~" -exec rm {} \;
35
36clean:
37 @echo Cleaning intermediate stuff...
[238]38 @rm -Rf Mods server_fixes_v*.tar.gz
[224]39
Note: See TracBrowser for help on using the repository browser.