Changeset 565


Ignore:
Timestamp:
Dec 6, 2013, 9:05:10 PM (6 years ago)
Author:
amain
Message:

bitten: slave config update

Location:
trunk/bitten/slaves
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bitten/slaves/include/slaves.inc.sh

    r539 r565  
    1717# You should have received a copy of the GNU General Public License
    1818# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    19 
    20 run=${1}
    21 ini=${2}
    22 recipe=${3}
    23 
    24 if [ ! "${run}" = "run" ]
    25 then
    26   svn update ${BASEDIR}
    27   exec ${BASEDIR}/bin/$(basename $0) run $@
    28 else
    29   shift
    30   shift
    31 fi
    32 
    33 if [ -f "${recipe}" ]
    34 then
    35    # assume user supplied local recipy file
    36    shift
    37    mode=local
    38 else
    39    unset recipe
    40    mode=remote
    41 fi
    4219
    4320function usage()
     
    7350}
    7451
    75 [ ! -f "${ini}" ] && usage
     52run=${1}
     53ini=${2}
     54recipe=${3}
     55
     56if [ ! "${run}" = "run" ]
     57then
     58  svn update ${BASEDIR}
     59  exec ${BASEDIR}/bin/$(basename $0) run $@
     60else
     61  shift
     62  shift
     63fi
     64
     65if [ -f "${recipe}" ]
     66then
     67   # assume user supplied local recipy file
     68   shift
     69   mode=local
     70else
     71   unset recipe
     72   mode=remote
     73fi
     74
     75
     76[ ! -f "${ini}"    ] && usage
     77
     78inipwd=~/.$(basename ${ini})
     79inipwd=${inipwd/.ini/}
     80[ ! -f "${inipwd}" ] && echo "E: can't read slave password (${inipwd})" && exit 1
     81. ${inipwd}
     82export DEBWRT_PUBLISH_URI
     83export DEBWRT_PUBLISH_PATH
    7684
    7785eval $(awk -f ${BASEDIR}/include/ini.awk ${ini})
     
    100108
    101109patches
     110set -x
    102111bitten-slave --verbose \
    103112             --single \
     
    110119             --exit-no-pending \
    111120             --dump-reports \
     121             --password ${password} \
    112122             $@ \
    113123             ${server_or_recipe}
Note: See TracChangeset for help on using the changeset viewer.