source: orange/install-scripts/debian/dailyrun.sh @ 7682:8e978c05cbc0

Revision 7682:8e978c05cbc0, 927 bytes checked in by mitar, 3 years ago (diff)

Updated Debian daily building scripts for new server.

  • Property exe set to *
Line 
1#!/bin/bash
2#
3# Should be run as: sudo ./dailyrun.sh
4#
5
6DAILY_REVISION=`svn info --non-interactive http://orange.biolab.si/svn/orange/trunk/ | grep 'Last Changed Rev:' | cut -d ' ' -f 4`
7# svn info does not return proper exit status on an error so we check it this way
8[ "$DAILY_REVISION" ] || exit 1
9
10ARCH=`dpkg --print-architecture`
11
12mount | grep -q /mnt/debian || { mount /mnt/debian; sleep 10; }
13mount | grep -q /mnt/download || { mount /mnt/download; sleep 10; }
14
15/root/debian-daily-build.sh $DAILY_REVISION &> /tmp/debian-daily-build.log
16EXIT_VALUE=$?
17echo "Orange (Debian $ARCH) [$EXIT_VALUE]" > "/mnt/download/buildLogs/debian/debian-$ARCH-daily-build.log"
18date >> "/mnt/download/buildLogs/debian/debian-$ARCH-daily-build.log"
19cat /tmp/debian-daily-build.log >> "/mnt/download/buildLogs/debian/debian-$ARCH-daily-build.log"
20(($EXIT_VALUE)) && echo "Running debian-daily-build.sh ($ARCH) failed"
21
22# Zero exit value
23true
Note: See TracBrowser for help on using the repository browser.