source: trunk/bitten/slaves/bin/slave-cron @ 517

Last change on this file since 517 was 517, checked in by amain, 6 years ago

Merge contrib branch 340:516. Main features added:

  • updated plugin architecture
  • improved patch system
  • bitten continous integration support
  • sever build fixed over time to remain in sync with OpenWrt
  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/bash
2# DebWrt - Debian on Embedded devices
3#
4# Copyright (C) 2012 Johan van Zoomeren <amain@debwrt.net>
5#
6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation, either version 3 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
19# MAILTO=amain@debwrt.net
20# 0 1 * * * /home/bitten/slaves/bin/slave-cron /home/bitten/slaves/ini/slaveN.ini >/dev/null 2>&1
21
22function usage()
23{
24   cat <<EOF
25usage: $(basename $0) <slave.ini>
26
27EOF
28   exit 1
29}
30
31[ -f /etc/profile ] && source /etc/profile
32export USER=$(id -un)
33
34BASEDIR=$(readlink -f $(dirname $0))/../
35
36ini=${1}
37shift
38
39[ ! -f "${ini}" ] && usage
40
41eval $(awk -f ${BASEDIR}/include/ini.awk ${ini})
42
43echo "I: slave will build: ${dailybuilds_count} builds"
44
45for i in $(seq 1 ${dailybuilds_count})
46do
47   ${BASEDIR}/bin/slave ${ini} $@
48done
49
Note: See TracBrowser for help on using the repository browser.