Changeset 10276:1245e7085b58 in orange


Ignore:
Timestamp:
02/17/12 13:20:12 (2 years ago)
Author:
ales_erjavec
Branch:
default
rebase_source:
4e39fab4c0d8e74aefac2cf0984f5e0dc27f121c
Message:

Checking for incoming changesets before pulling. Printing more useful info.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • install-scripts/mac/bundle-inject-hg.sh

    r10270 r10276  
    3131CLONE_ARCHIVE_FULLPATH=${WORK_DIR}/${CLONE_ARCHIVE_NAME} 
    3232  
    33 # If the repo clone does not yet exist then clone it 
     33 
    3434if [ ! -e $CLONE_FULLPATH ]; then 
     35    echo "Cloning $REPO to $CLONE_FULLPATH" 
    3536    hg clone $REPO $CLONE_FULLPATH 
     37else 
     38    echo "Repository $CLONE_FULLPATH already present". 
    3639fi 
    3740 
    38 hg pull --update -R $CLONE_FULLPATH 
     41echo "Checking for incomming changesets" 
     42if hg incoming -R $CLONE_FULLPATH; then  
     43    echo "Changesets found. Pulling and updating." 
     44    hg pull --update -R $CLONE_FULLPATH 
     45fi 
    3946 
    4047# Remove old archive if it exists 
    4148if [ -e $CLONE_ARCHIVE_FULLPATH ]; then 
     49    echo "Removing old archive at $CLONE_ARCHIVE_FULLPATH" 
    4250    rm -rf $CLONE_ARCHIVE_FULLPATH 
    4351fi 
    4452 
    4553# Create an archive 
     54echo "Creating archive $CLONE_ARCHIVE_FULLPATH" 
     55 
    4656hg archive -r $REVISION $CLONE_ARCHIVE_FULLPATH -R $CLONE_FULLPATH 
    4757 
     
    4959 
    5060# Run installation 
     61echo "Running setup.py install with python '$PYTHON'" 
    5162$PYTHON setup.py install 
    5263 
    5364# Clean up the archive 
    5465cd $WORK_DIR 
     66echo "Cleaning up the archive at $CLONE_ARCHIVE_FULLPATH" 
    5567rm -rf $CLONE_ARCHIVE_FULLPATH 
    5668 
Note: See TracChangeset for help on using the changeset viewer.