source: orange/install-scripts/mac/dailyrun-sources.sh @ 10910:010f67b2461b

Revision 10910:010f67b2461b, 1.0 KB checked in by Ales Erjavec <ales.erjavec@…>, 23 months ago (diff)

Updated the Orange-Text hg repo url and package name in the build scripts.

  • Property exe set to *
Line 
1#!/bin/bash -e
2#
3# Should be run as: sudo ./dailyrun-sources.sh work/dir
4#
5# $1 work dir
6# $2 local build
7# $3 force
8
9WORK_DIR=${1:-"/private/tmp"}
10
11LOCAL=$2
12FORCE=$3
13
14test -r /sw/bin/init.sh && . /sw/bin/init.sh
15
16export PATH=$HOME/bin:$PATH
17
18if [ $LOCAL ]; then
19    PUBLISH_DIR=$WORK_DIR/download/sources
20else
21    PUBLISH_DIR=/Volumes/download/sources
22fi
23
24if [ ! -e $WORK_DIR ]; then
25    mkdir -p $WORK_DIR
26fi
27
28
29REPO_DIR=$WORK_DIR/repos
30
31defaults write com.apple.desktopservices DSDontWriteNetworkStores true
32
33if [ ! $LOCAL ]; then
34    /Users/ailabc/mount-dirs.sh || { echo "Mounting failed." ; exit 1 ; }
35fi
36
37if [ ! -e $PUBLISH_DIR ]; then
38    mkdir -p $PUBLISH_DIR
39fi
40
41# Build source packages
42./build-source.sh https://bitbucket.org/biolab/orange orange tip $REPO_DIR Orange $PUBLISH_DIR $FORCE
43./build-source.sh https://bitbucket.org/biolab/orange-bioinformatics bioinformatics tip $REPO_DIR Orange-Bioinformatics $PUBLISH_DIR $FORCE
44./build-source.sh https://bitbucket.org/biolab/orange-text text tip $REPO_DIR Orange-Text $PUBLISH_DIR $FORCE
45
46true
Note: See TracBrowser for help on using the repository browser.