Changeset 265 for scripts


Ignore:
Timestamp:
Apr 20, 2016, 3:23:35 PM (9 years ago)
Author:
alloc
Message:

v100

Location:
scripts/usr/local/lib/7dtd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/VERSION

    r264 r265  
    1 Version: 99
    2 Release: 2016-04-06
     1Version: 100
     2Release: 2016-04-20
    33
  • scripts/usr/local/lib/7dtd/commands/updateengine.sh

    r258 r265  
    2323#               FORCED=yes
    2424#       fi
     25
     26        local EXPERIMENTAL=no
     27        if [ "$1" = "--experimental" ]; then
     28                EXPERIMENTAL=yes
     29        fi
    2530
    2631        if [ ! -e $SDTD_BASE/steamcmd ]; then
     
    8893                done
    8994               
     95                local BRANCH_PARAM=
     96                if [ "$EXPERIMENTAL" = "yes" ]; then
     97                        BRANCH_PARAM="-beta latest_experimental"
     98                fi
     99               
    90100                cd $SDTD_BASE/steamcmd
    91                 ./steamcmd.sh +login anonymous +force_install_dir $SDTD_BASE/engine +app_update 294420 validate +quit
     101                ./steamcmd.sh +login anonymous +force_install_dir $SDTD_BASE/engine +app_update 294420 -validate $BRANCH_PARAM +quit
    92102
    93103                if [ -d /usr/local/lib/7dtd/server-fixes ]; then
     
    108118
    109119sdtdCommandUpdateengineHelp() {
    110         echo "Usage: $(basename $0) updateengine" # [--force | --check]"
     120        echo "Usage: $(basename $0) updateengine [--experimental]" # [--force | --check]"
    111121        echo
    112122        echo "Check for a newer version of engine (aka game) files of 7dtd. If there is a newer"
    113123        echo "version they will be updated by this command."
     124        echo
     125        echo "If --experimental is specified the server will be updated to the"
     126        echo "latest_experimental Steam branch of the game."
    114127#       echo
    115128#       echo "If --force is specified you are asked if you want to redownload the engine"
     
    125138
    126139sdtdCommandUpdateengineExpects() {
     140        case $1 in
     141                2)
     142                        echo "--experimental"
     143                        ;;
     144        esac
    127145#       case $1 in
    128146#               2)
Note: See TracChangeset for help on using the changeset viewer.