Changeset 60 for scripts


Ignore:
Timestamp:
Jun 15, 2014, 3:14:36 PM (10 years ago)
Author:
alloc
Message:

Version 19: SteamDB.info for buildid

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

Legend:

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

    r59 r60  
    1 Version: 18
     1Version: 19
    22Release: 2014-06-15
  • scripts/usr/local/lib/7dtd/common.sh

    r53 r60  
    118118getRemoteEngineVersion() {
    119119        cd $SDTD_BASE/steamcmd
    120         local REMOTE=$(./steamcmd.sh "+app_info_print 251570" +quit | grep -EA 1000 "^\s+\"branches\"$" | grep -EA 5 "^\s+\"public\"$" | grep -m 1 -EB 10 "^\s+}$" | grep -E "^\s+\"buildid\"\s+" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\  -f3)
     120        local REMOTE=$(wget -qO- http://steamdb.info/api/GetRawDepots/?appid=251570 | sed 's/\\n/\n/g' | grep -EA 1000 "^\s+\[branches\]" | grep -EA 5 "^\s+\[public\]" | grep -m 1 -EB 10 "^\s+\)$" | grep -E "^\s+\[buildid\]\s+" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\  -f4)
     121
    121122        if [ $(isANumber "$REMOTE") -eq 0 ]; then
    122123                REMOTE=1
Note: See TracChangeset for help on using the changeset viewer.