source: orange/install-scripts/mac/dailyrun-bundleonly-hg.sh @ 11427:72163d6c657d

Revision 11427:72163d6c657d, 806 bytes checked in by Ales Erjavec <ales.erjavec@…>, 13 months ago (diff)

Fix for daily build scripts.

RevLine 
[10270]1#!/bin/bash
2#
3# Should be run as: sudo ./dailyrun-bundleonly-hg.sh
4#
5
[10345]6export PATH=$HOME/bin:$PATH
7
[10270]8MAC_VERSION=`sw_vers -productVersion | cut -d '.' -f 2`
9
10defaults write com.apple.desktopservices DSDontWriteNetworkStores true
11
12/Users/ailabc/mount-dirs.sh || { echo "Mounting failed." ; exit 1 ; }
13
[11427]14/Users/ailabc/bundle-daily-build-hg.sh /private/tmp /Volumes/download &> /private/tmp/bundle-daily-build-hg.log
[10270]15EXIT_VALUE=$?
16
17/Users/ailabc/mount-dirs.sh || { echo "Mounting failed." ; exit 1 ; }
18
19LOG_FILE="/Volumes/download/buildLogs/osx/bundle-$MAC_VERSION-daily-build-hg.log"
20
21echo "Orange (bundle $MAC_VERSION) [$EXIT_VALUE]" > $LOG_FILE
22date >> $LOG_FILE
23cat /private/tmp/bundle-daily-build-hg.log >> $LOG_FILE
24(($EXIT_VALUE)) && echo "Running bundle-daily-build-hg.sh failed"
25
26# Zero exit value
27true
Note: See TracBrowser for help on using the repository browser.