source: bundle_creation/makefile@ 48

Last change on this file since 48 was 48, checked in by alloc, 11 years ago

Scripts: added about, updatescripts; Bootstrapper: added version

File size: 1.0 KB
Line 
1HOST=178.63.97.203
2PORT=51010
3SERVERPATH=/srv/www/illy.bz/http/fi/7dtd/
4
5VERSIONFILE=../scripts/usr/local/lib/7dtd/VERSION
6VERSION=$(shell cat ${VERSIONFILE} | grep "Version" | cut -d\ -f2)
7ARCHIVENAME=management_scripts_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 management_scripts.tar.gz; ln -s ${ARCHIVENAME} management_scripts.tar.gz"
19
20${ARCHIVENAME}: CONTENTS
21 @echo Creating archive...
22 @tar -czf ${ARCHIVENAME} etc home usr
23
24CONTENTS: SCRIPTS SSD
25
26SCRIPTS:
27 @echo Copying management scripts...
28 @find ../scripts -name "*~" -exec rm {} \;
29 @cp -r ../scripts/* .
30
31SSD:
32 @echo Copying start-stop-daemon source...
33 @find ../tools -name "*~" -exec rm {} \;
34 @cp -r ../tools/start-stop-daemon usr/local/lib/7dtd
35
36clean:
37 @echo Cleaning intermediate stuff...
38 @rm -Rf usr home etc ${ARCHIVENAME}
39
Note: See TracBrowser for help on using the repository browser.