From 1b789f0e85dd2242f8eb9a2ffde5e634b2cf0aed Mon Sep 17 00:00:00 2001 From: Klaus Reimer Date: Sun, 14 Apr 2013 11:29:36 +0200 Subject: [PATCH] Use curl instead of wget and also copy dylib files to dist dir --- src/main/c/build/common.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/c/build/common.sh b/src/main/c/build/common.sh index 2c4dfdc..d636c7f 100644 --- a/src/main/c/build/common.sh +++ b/src/main/c/build/common.sh @@ -19,7 +19,7 @@ build() mkdir -p "$DOWNLOADS" if [ ! -e "$LIBUSBX_FILE" ] then - wget -O "$LIBUSBX_FILE" "$LIBUSBX_URL" + curl -L -o "$LIBUSBX_FILE" "$LIBUSBX_URL" fi # Unpack and compile libusbx @@ -55,6 +55,9 @@ build() cp -faL 2>/dev/null \ "$TMPDIR/bin/libusb4java-1.dll" \ "$DISTDIR/libusb4java.dll" || true + cp -faL 2>/dev/null \ + "$TMPDIR/lib/libusb4java.dylib" \ + "$DISTDIR/libusb4java.dylib" || true # Remove executable flag from dist files chmod -x "$DISTDIR/"*