Last change
on this file since 109 was 85, checked in by alloc, 10 years ago |
Bundle creation: Add server fixes
|
File size:
1.4 KB
|
Rev | Line | |
---|
[48] | 1 | HOST=178.63.97.203
|
---|
| 2 | PORT=51010
|
---|
| 3 | SERVERPATH=/srv/www/illy.bz/http/fi/7dtd/
|
---|
[4] | 4 |
|
---|
[48] | 5 | VERSIONFILE=../scripts/usr/local/lib/7dtd/VERSION
|
---|
| 6 | VERSION=$(shell cat ${VERSIONFILE} | grep "Version" | cut -d\ -f2)
|
---|
| 7 | ARCHIVENAME=management_scripts_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 management_scripts.tar.gz; ln -s ${ARCHIVENAME} management_scripts.tar.gz"
|
---|
| 19 |
|
---|
| 20 | ${ARCHIVENAME}: CONTENTS
|
---|
[4] | 21 | @echo Creating archive...
|
---|
[48] | 22 | @tar -czf ${ARCHIVENAME} etc home usr
|
---|
[4] | 23 |
|
---|
[85] | 24 | CONTENTS: SCRIPTS SSD SERVERFIXES
|
---|
[4] | 25 |
|
---|
| 26 | SCRIPTS:
|
---|
| 27 | @echo Copying management scripts...
|
---|
| 28 | @find ../scripts -name "*~" -exec rm {} \;
|
---|
| 29 | @cp -r ../scripts/* .
|
---|
| 30 |
|
---|
[25] | 31 | SSD:
|
---|
| 32 | @echo Copying start-stop-daemon source...
|
---|
| 33 | @find ../tools -name "*~" -exec rm {} \;
|
---|
| 34 | @cp -r ../tools/start-stop-daemon usr/local/lib/7dtd
|
---|
[4] | 35 |
|
---|
[85] | 36 | SERVERFIXES:
|
---|
| 37 | @echo Copying server fixes...
|
---|
| 38 | @mkdir -p usr/local/lib/7dtd/server-fixes
|
---|
| 39 | @cp ../binary-improvements/7dtd-server-fixes/bin/Release/Assembly-CSharp.dll usr/local/lib/7dtd/server-fixes
|
---|
| 40 | @cp ../binary-improvements/7dtd-server-fixes/bin/Release/7dtd-server-fixes.dll usr/local/lib/7dtd/server-fixes
|
---|
| 41 |
|
---|
[4] | 42 | clean:
|
---|
| 43 | @echo Cleaning intermediate stuff...
|
---|
[50] | 44 | @rm -Rf usr home etc management_scripts_v*.tar.gz
|
---|
[48] | 45 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.