Changeset 10869:97875253cca6 in orange


Ignore:
Timestamp:
05/17/12 14:40:34 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Force build mac osx bundle if there are new versions of add-ons available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • install-scripts/mac/dailyrun.sh

    r10702 r10869  
    3838fi 
    3939 
     40# Get old source addon versions from PKG-INFO files (these are updated by dailyrun-sources) 
     41OLD_ORANGE_VERSION=`grep "^Version:" $SOURCES_DIR/Orange.egg-info/PKG-INFO | cut -d " " -f 2` 
     42OLD_BIOINFORMATICS_VERSION=`grep "^Version:" $SOURCES_DIR/Orange_Bioinformatics.egg-info/PKG-INFO | cut -d " " -f 2` 
     43OLD_TEXT_VERSION=`grep "^Version:" $SOURCES_DIR/Orange_Text_Mining.egg-info/PKG-INFO | cut -d " " -f 2` 
     44 
     45 
    4046SOURCE_LOG=$WORK_DIR/sources-daily-build.log 
    4147 
     
    5157SOURCES_DIR=$PUBLISH_DIR/sources 
    5258 
    53 # Get versions from PKG-INFO files (these are updated by dailyrun-sources) 
     59# Get new versions from PKG-INFO files (these are updated by dailyrun-sources) 
    5460ORANGE_VERSION=`grep "^Version:" $SOURCES_DIR/Orange.egg-info/PKG-INFO | cut -d " " -f 2` 
    5561BIOINFORMATICS_VERSION=`grep "^Version:" $SOURCES_DIR/Orange_Bioinformatics.egg-info/PKG-INFO | cut -d " " -f 2` 
     
    6874TEXT_SOURCE_MD5=`md5 -q $SOURCES_DIR/$TEXT_SOURCE` 
    6975 
     76# Are there new versions of orange and addons available. 
     77if [[ $OLD_ORANGE_VERSION < $ORANGE_VERSION ]]; then 
     78    NEW_ORANGE=1 
     79fi 
     80 
     81if [[ $OLD_BIOINFORMATICS_VERSION < $BIOINFORMATICS_VERSION ]]; then 
     82    NEW_BIOINFORMATICS=1 
     83    NEW_BUNDLE_ADDONS=1 
     84fi 
     85 
     86if [[ $OLD_TEXT_VERSION < $TEXT_VERSION ]]; then 
     87    NEW_TEXT=1 
     88    NEW_BUNDLE_ADDONS=1 
     89fi 
    7090 
    7191## Daily bundle build from hg (for now always until versioning is established). 
    7292if [[ true || $NEW_ORANGE || $NEW_BIOINFORMATICS || $NEW_TEXT || $FORCE ]]; then 
    73     ./bundle-daily-build-hg.sh &> $WORK_DIR/bundle-daily-build.log 
     93    ./bundle-daily-build-hg.sh $NEW_BUNDLE_ADDONS &> $WORK_DIR/bundle-daily-build.log 
    7494    EXIT_VALUE=$? 
    7595fi 
     
    103123OLD_TEXT_VERSION=`curl --silent $BASE/orange-text-gui-dev-py.info | grep "Version: " | cut -d" " -f 2` 
    104124 
    105 if [[ $OLD_ORANGE_VERSION < ORANGE_VERSION ]]; then 
     125if [[ $OLD_ORANGE_VERSION < $ORANGE_VERSION ]]; then 
    106126    NEW_ORANGE=1 
    107127fi 
    108128 
    109 if [[ $OLD_BIOINFORMATICS_VERSION < BIOINFORMATICS_VERSION ]]; then 
     129if [[ $OLD_BIOINFORMATICS_VERSION < $BIOINFORMATICS_VERSION ]]; then 
    110130    NEW_BIOINFORMATICS=1 
    111131fi 
    112132 
    113 if [[ $OLD_TEXT_VERSION < TEXT_VERSION ]]; then 
     133if [[ $OLD_TEXT_VERSION < $TEXT_VERSION ]]; then 
    114134    NEW_TEXT=1 
    115135fi 
Note: See TracChangeset for help on using the changeset viewer.