Browse Source

make-release: Include libmicrohttpd-10.dll if it exists

Luke Dashjr 12 years ago
parent
commit
97c7e52350
1 changed files with 3 additions and 1 deletions
  1. 3 1
      make-release

+ 3 - 1
make-release

@@ -57,6 +57,7 @@ dlls='
 	libcurl-4.dll
 	libcurl-4.dll
 	pthreadGC2.dll
 	pthreadGC2.dll
 	libjansson-4.dll
 	libjansson-4.dll
+	libmicrohttpd-10.dll
 	libusb-1.0.dll
 	libusb-1.0.dll
 	zlib1.dll
 	zlib1.dll
 '
 '
@@ -82,11 +83,12 @@ for build in "${builds[@]}"; do
 	if test "x$DEBUG_RELEASE" = "x1"; then
 	if test "x$DEBUG_RELEASE" = "x1"; then
 		CFLAGS="${CFLAGS} -g"
 		CFLAGS="${CFLAGS} -g"
 	fi
 	fi
-	libdir="/usr/$machine/usr/bin/$dll"
 	for dll in $dlls; do
 	for dll in $dlls; do
 		libdir="/usr/$machine/usr/lib"
 		libdir="/usr/$machine/usr/lib"
 		[ -e "$libdir/$dll" ] ||
 		[ -e "$libdir/$dll" ] ||
 			libdir="/usr/$machine/usr/bin"
 			libdir="/usr/$machine/usr/bin"
+		[ -e "$libdir/$dll" ] ||
+			continue
 		cp -v -L "$libdir/$dll" "$PKGDIR"
 		cp -v -L "$libdir/$dll" "$PKGDIR"
 		"$machine"-strip "$PKGDIR/$dll"
 		"$machine"-strip "$PKGDIR/$dll"
 	done
 	done