Changeset 48 for bundle_creation


Ignore:
Timestamp:
Jun 5, 2014, 11:56:22 PM (6 years ago)
Author:
alloc
Message:

Scripts: added about, updatescripts; Bootstrapper: added version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bundle_creation/makefile

    r29 r48  
    1 ALL: CONTENTS ARCHIVE
    2         @echo ALL DONE
     1HOST=178.63.97.203
     2PORT=51010
     3SERVERPATH=/srv/www/illy.bz/http/fi/7dtd/
    34
    4 ARCHIVE:
     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
    521        @echo Creating archive...
    6         @tar -czf management_scripts_v`cat usr/local/lib/7dtd/VERSION | grep "version" | cut -d\  -f3`.tar.gz etc home usr
     22        @tar -czf ${ARCHIVENAME} etc home usr
    723
    824CONTENTS: SCRIPTS SSD
     
    2036clean:
    2137        @echo Cleaning intermediate stuff...
    22         -@find * -type d -exec rm -R {} \; 2>/dev/null
    23         @echo "Ignore that error ;)"
     38        @rm -Rf usr home etc ${ARCHIVENAME}
     39
Note: See TracChangeset for help on using the changeset viewer.