Commit 48176008 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

Store librsync in osx bundle

parent fc4d3a46
......@@ -72,11 +72,21 @@ cd $SRCPATH
rm -rf build
patch -N -p0 < $ROOTPATH/src/duplicity-patches/timeview.patch
patch -N -p0 < $ROOTPATH/src/duplicity-patches/syspath.patch
python setup.py build --executable="/usr/bin/env python"
LIBRSYNC_DIR=/usr/local python setup.py build --executable="/usr/bin/env python"
cd build/lib.*
cp -pr * $DUPL/lib
cd ../scripts-2.7
cp -p duplicity $DUPL
if [[ "$OS_NAME" = "Darwin" ]]
then
cd $DUPL/lib/duplicity
LIBRSYNC=librsync.2.dylib
LIBRSYNC_PATH=/usr/local/opt/librsync/lib/$LIBRSYNC
cp $LIBRSYNC_PATH .
chmod +w $LIBRSYNC
install_name_tool -change $LIBRSYNC_PATH @loader_path/$LIBRSYNC _librsync.so
fi
echo built in $DUPL
echo must be used with PYTHONPATH=$DUPL/lib
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment