diff --git a/build.cmd b/build.cmd index b5721c0..a558756 100644 --- a/build.cmd +++ b/build.cmd @@ -2,6 +2,7 @@ echo Executing rdmd ... rdmd --force --build-only -ofbin\dub.exe -g -debug -w -property -Isource curl.lib %* source\app.d +if errorlevel 1 exit /b 1 echo DUB has been built. You probably also want to add the following entry to your echo PATH environment variable: diff --git a/build.sh b/build.sh index a77010b..f8cc779 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,6 @@ #!/bin/sh +set -e + LIBS=`pkg-config --libs libcurl 2>/dev/null || echo "-lcurl"` LIBS=`echo "$LIBS" | sed 's/^-L/-L-L/; s/ -L/ -L-L/g; s/^-l/-L-l/; s/ -l/ -L-l/g'`