Ignore:
Timestamp:
03/23/12 17:21:06 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Use setup.py to publish the sources and rotate latest versions.

File:
1 edited

Legend:

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

    r10555 r10623  
    1717 
    1818if [ $LOCAL ]; then 
    19     PUBLISH_DIR=$WORK_DIR/download 
    20     mkdir -p $PUBLISH_DIR 
     19    PUBLISH_DIR=$WORK_DIR/download/sources 
    2120else 
    22     PUBLISH_DIR=/Volumes/download 
     21    PUBLISH_DIR=/Volumes/download/sources 
    2322fi 
    2423 
     
    2726fi 
    2827 
     28 
    2929REPO_DIR=$WORK_DIR/repos 
    30  
    31 # Build source packages 
    32 ./build-source.sh https://bitbucket.org/biolab/orange orange tip $REPO_DIR Orange 
    33 ./build-source.sh https://bitbucket.org/biolab/orange-addon-bioinformatics bioinformatics tip $REPO_DIR Orange-Bioinformatics 
    34 ./build-source.sh https://bitbucket.org/biolab/orange-addon-text text tip $REPO_DIR Orange-Text-Mining 
    3530 
    3631defaults write com.apple.desktopservices DSDontWriteNetworkStores true 
     
    4035fi 
    4136 
    42 # Get versions from PKG-INFO files 
    43 ORANGE_VERSION=`grep "^Version:" $REPO_DIR/Orange.egg-info/PKG-INFO | cut -d " " -f 2` 
    44 BIOINFORMATICS_VERSION=`grep "^Version:" $REPO_DIR/Orange_Bioinformatics.egg-info/PKG-INFO | cut -d " " -f 2` 
    45 TEXT_VERSION=`grep "^Version:" $REPO_DIR/Orange_Text_Mining.egg-info/PKG-INFO | cut -d " " -f 2` 
    46  
    47 # Source filenames 
    48 ORANGE_SOURCE="Orange-${ORANGE_VERSION}.tar.gz" 
    49 BIOINFORMATICS_SOURCE="Orange-Bioinformatics-${BIOINFORMATICS_VERSION}.tar.gz" 
    50 TEXT_SOURCE="Orange-Text-Mining-${TEXT_VERSION}.tar.gz" 
    51  
    52 # Get source packages md5 checksum 
    53 ORANGE_SOURCE_MD5=`md5 -q $REPO_DIR/$ORANGE_SOURCE` 
    54 BIOINFORMATICS_SOURCE_MD5=`md5 -q $REPO_DIR/$BIOINFORMATICS_SOURCE` 
    55 TEXT_SOURCE_MD5=`md5 -q $REPO_DIR/$TEXT_SOURCE` 
    56  
    57  
    58 # Base dir for sources 
    59 SOURCES_DIR=$PUBLISH_DIR/sources 
    60  
    61  
    62 # Publish sources 
    63  
    64 if [ ! -e $SOURCES_DIR ]; then 
    65     mkdir -p $SOURCES_DIR 
     37if [ ! -e $PUBLISH_DIR ]; then 
     38    mkdir -p $PUBLISH_DIR 
    6639fi 
    6740 
    68  
    69 if [[ ! -e $SOURCES_DIR/$ORANGE_SOURCE || $FORCE ]]; then 
    70     cp $REPO_DIR/$ORANGE_SOURCE $SOURCES_DIR/$ORANGE_SOURCE 
    71     cp -r $REPO_DIR/Orange.egg-info $SOURCES_DIR/ 
    72     NEW_ORANGE=1 
    73 fi 
    74  
    75 if [[ ! -e $SOURCES_DIR/BIOINFORMATICS_SOURCE || $FORCE ]]; then 
    76     cp $REPO_DIR/$BIOINFORMATICS_SOURCE $SOURCES_DIR/$BIOINFORMATICS_SOURCE 
    77     cp -r $REPO_DIR/Orange_Bioinformatics.egg-info $SOURCES_DIR/ 
    78     NEW_BIOINFORMATICS=1 
    79 fi 
    80  
    81 if [[ ! -e $SOURCES_DIR/TEXT_SOURCE || $FORCE ]]; then 
    82     cp $REPO_DIR/$TEXT_SOURCE $SOURCES_DIR/$TEXT_SOURCE 
    83     cp -r $REPO_DIR/Orange_Text_Mining.egg-info $SOURCES_DIR/ 
    84     NEW_TEXT=1 
    85 fi 
     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-addon-bioinformatics bioinformatics tip $REPO_DIR Orange-Bioinformatics $PUBLISH_DIR $FORCE 
     44./build-source.sh https://bitbucket.org/biolab/orange-addon-text text tip $REPO_DIR Orange-Text-Mining $PUBLISH_DIR $FORCE 
    8645 
    8746true 
Note: See TracChangeset for help on using the changeset viewer.