Skip to content

Commit

Permalink
Fixes path to generated package (make it absolute)
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Oct 23, 2014
1 parent a1e4f2c commit cd48a49
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dist/conda/conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ sedi(){
mv $TEMPFILE "$2"
}

absolutepathname(){
cd "$(dirname "$1")"
echo "$(pwd)/$(basename "$1")"
}

# Changes version in recipe
VERSION_ESCAPED="$(echo "$VERSION" | sed 's/\\/\\\\/g' | sed 's/\//\\\//g')"
sedi "s/_REPLACE_version_REPLACE_/$VERSION_ESCAPED/g" $TEMP_DIR/vistrails/meta.yaml
Expand All @@ -55,14 +60,16 @@ sedi "s/_REPLACE_url_REPLACE_/$URL_ESCAPED/g" $TEMP_DIR/vistrails/meta.yaml
# Builds Conda package
cd $TEMP_DIR
OUTPUT_PKG="$(conda build --output vistrails)"
OUTPUT_PKG="$(absolutepathname "$OUTPUT_PKG")"
if ! conda build vistrails; then
rm -Rf $TEMP_DIR
rm -f "$ANACONDA_CACHE"
exit 1
fi

# Copies result out
cp "$OUTPUT_PKG" $DEST_DIR/
cd "$VT_DIR"
cp "$OUTPUT_PKG" "$DEST_DIR/"

# Removes temporary directory
rm -Rf $TEMP_DIR
Expand Down

0 comments on commit cd48a49

Please sign in to comment.