Changeset 10909:4a21ccfd0eb2 in orange


Ignore:
Timestamp:
06/08/12 14:17:26 (23 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed existing source package version discovery.

The build-source.sh script would look in the wrong directory
(the work dir instead of the publish dir).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • install-scripts/mac/build-source.sh

    r10849 r10909  
    1111# $7 force 
    1212# 
    13 # Example ./build-source.sh http://bitbucket.org/biolab/orange orange tip /private/tmp/repos Orange 
     13# Example ./build-source.sh https://bitbucket.org/biolab/orange orange tip /private/tmp/repos Orange 
    1414 
    1515HG_REPO=$1 
     
    2626LOCAL_REPO=$WORK_DIR/$REPO_DIRNAME 
    2727 
    28 LATEST_REVISION=`hg id $HG_REPO` 
     28LATEST_REVISION=`hg id -r $HG_REV $HG_REPO` 
    2929 
    30 if [ -e $WORK_DIR/$UDIST_NAME.egg-info/PKG-INFO ]; then 
    31     CURRENT_REVISION=`grep "^Version: " $WORK_DIR/$UDIST_NAME.egg-info/PKG-INFO | cut -d "-" -f 3` 
     30if [ -e $DIST_DIR/$UDIST_NAME.egg-info/PKG-INFO ]; then 
     31    CURRENT_REVISION=`grep "^Version: " $DIST_DIR/$UDIST_NAME.egg-info/PKG-INFO | cut -d "-" -f 3` 
    3232else 
    3333    CURRENT_REVISION="" 
     
    3737    BUILD=1 
    3838else 
     39    echo "$DIST_NAME source distribution rev:$CURRENT_REVISION already exists." 
    3940    BUILD= 
    4041fi 
Note: See TracChangeset for help on using the changeset viewer.