Changeset 48


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

Scripts: added about, updatescripts; Bootstrapper: added version

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • bootstrapper/bootstrap.sh

    r44 r48  
    11#!/bin/bash
    2 # Version 1
     2VERSION=2
    33
    44if [ `id -u` -ne 0 ]; then
     
    3131
    3232showHelp() {
     33        echo "7dtd bootstrapper version $VERSION"
     34        echo
    3335        echo "Usage: ./bootstrap.sh [-h] [-c] -i"
    3436        echo "Parameters:"
  • 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
  • scripts/usr/local/lib/7dtd/VERSION

    r47 r48  
    1 Current version: 12
    2 Last edit: 2014-06-03
     1Version: 12
     2Release: 2014-06-03
  • scripts/usr/local/lib/7dtd/commands/updateengine.sh

    r35 r48  
    11#!/bin/bash
    22
    3 # Tries to start the 7dtd instance.
     3# Downloads SteamCMD, downloads/updates the 7dtd engine
    44
    55sdtdCommandUpdateengine() {
Note: See TracChangeset for help on using the changeset viewer.