source: orange/install-scripts/mac/dailyrun-finkonly.sh @ 8096:d420b5057e4b

Revision 8096:d420b5057e4b, 951 bytes checked in by mitar, 3 years ago (diff)

Made daily building logging more verbose.

  • Property exe set to *
Line 
1#!/bin/bash
2#
3# Should be run as: sudo ./dailyrun-finkonly.sh
4#
5
6test -r /sw/bin/init.sh && . /sw/bin/init.sh
7
8MAC_VERSION=`sw_vers -productVersion | cut -d '.' -f 2`
9ARCH=`perl -MFink::FinkVersion -e 'print Fink::FinkVersion::get_arch'`
10
11defaults write com.apple.desktopservices DSDontWriteNetworkStores true
12
13/Users/ailabc/mount-dirs.sh || { echo "Mounting failed." ; exit 1 ; }
14
15/Users/ailabc/fink-daily-build.sh &> /private/tmp/fink-daily-build.log
16EXIT_VALUE=$?
17
18/Users/ailabc/mount-dirs.sh || { echo "Mounting failed." ; exit 1 ; }
19
20echo "Orange (fink $MAC_VERSION $ARCH) [$EXIT_VALUE]" > "/Volumes/download/buildLogs/osx/fink-$MAC_VERSION-$ARCH-daily-build.log"
21date >> "/Volumes/download/buildLogs/osx/fink-$MAC_VERSION-$ARCH-daily-build.log"
22cat /private/tmp/fink-daily-build.log >> "/Volumes/download/buildLogs/osx/fink-$MAC_VERSION-$ARCH-daily-build.log"
23(($EXIT_VALUE)) && echo "Running fink-daily-build.sh failed"
24
25# Zero exit value
26true
Note: See TracBrowser for help on using the repository browser.