source: binary-improvements/bundle_creation/makefile@ 309

Last change on this file since 309 was 309, checked in by alloc, 7 years ago

Fixes 14_16_21

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