Rev | Line | |
---|
[497] | 1 | HOST=7dtd.illy.bz
|
---|
[48] | 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 |
|
---|
[255] | 24 | CONTENTS: SCRIPTS SSD
|
---|
[4] | 25 |
|
---|
| 26 | SCRIPTS:
|
---|
[239] | 27 | @rm etc home usr -Rf
|
---|
[4] | 28 | @echo Copying management scripts...
|
---|
| 29 | @find ../scripts -name "*~" -exec rm {} \;
|
---|
| 30 | @cp -r ../scripts/* .
|
---|
| 31 |
|
---|
[25] | 32 | SSD:
|
---|
| 33 | @echo Copying start-stop-daemon source...
|
---|
| 34 | @find ../tools -name "*~" -exec rm {} \;
|
---|
| 35 | @cp -r ../tools/start-stop-daemon usr/local/lib/7dtd
|
---|
[4] | 36 |
|
---|
[85] | 37 | SERVERFIXES:
|
---|
[225] | 38 | @echo Building server fixes...
|
---|
| 39 | @make -C ../binary-improvements/bundle_creation/
|
---|
[85] | 40 | @echo Copying server fixes...
|
---|
| 41 | @mkdir -p usr/local/lib/7dtd/server-fixes
|
---|
[225] | 42 | @cp ../binary-improvements/bundle_creation/Mods usr/local/lib/7dtd/server-fixes/ -R
|
---|
[85] | 43 |
|
---|
[4] | 44 | clean:
|
---|
| 45 | @echo Cleaning intermediate stuff...
|
---|
[50] | 46 | @rm -Rf usr home etc management_scripts_v*.tar.gz
|
---|
[48] | 47 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.