Changeset 562


Ignore:
Timestamp:
Nov 23, 2013, 10:52:02 AM (6 years ago)
Author:
amain
Message:

bitten: upload trunk to testing/trunk instead of releases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bitten/scripts/upload.sh

    r559 r562  
    4141path=${DEBWRT_PUBLISH_PATH:-"Please_configure_upload_PATH"}
    4242work=~/build/${1}
     43config=$(echo ${1} | awk -F "/" '{print $1}')
    4344
    44 ssh ${host} "mkdir -p /data/download/releases/${1}; ln -snf /data/download/releases/${1} /data/download/releases/${1}/../latest"
    45 scp -r ${work}/bin/*/* ${host}:/data/download/releases/${1}
     45if [ "${config}" == "trunk" ]
     46then
     47   base="testing"
     48else
     49   base="releases"
     50fi
    4651
     52ssh ${host} "mkdir -p ${path}/${base}/${1}; ln -snf ${path}/${base}/${1} ${path}/${base}/${1}/../latest"
     53scp -r ${work}/bin/*/* ${host}:${path}/${base}/${1}
     54
Note: See TracChangeset for help on using the changeset viewer.