diff options
author | hackademix | 2018-10-13 10:34:18 +0200 |
---|---|---|
committer | hackademix | 2018-10-13 10:34:18 +0200 |
commit | 816d8ae48511f6ed29e70b711dc302fc74c8eb08 (patch) | |
tree | a770e0c90f2079b47755e94a645ba012d543f5b5 /build.sh | |
parent | 808fd652be324098b3083302bc3218e47a11aba5 (diff) | |
download | noscript-816d8ae48511f6ed29e70b711dc302fc74c8eb08.tar.gz noscript-816d8ae48511f6ed29e70b711dc302fc74c8eb08.tar.xz noscript-816d8ae48511f6ed29e70b711dc302fc74c8eb08.zip |
[Build] Fixes for cygwin-related cross-platform compatibility quirks.
Diffstat (limited to 'build.sh')
-rw-r--r-- | build.sh | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -88,7 +88,15 @@ done echo "Creating $XPI.xpi..." mkdir -p "$XPI_DIR" -"$BUILD_CMD" $BUILD_OPTS --source-dir=$(cygpath -w "$BUILD") --artifacts-dir=$(cygpath -w "$XPI_DIR") --ignore-files=test/XSS_test.js +if which cygpath; then + WEBEXT_IN="$(cygpath -w "$BUILD")" + WEBEXT_OUT="$(cygpath -w "$XPI_DIR")" +else + WEBEXT_IN="$BUILD" + WEBEXT_OUT="$XPI_DIR" +fi + +"$BUILD_CMD" $BUILD_OPTS --source-dir="$WEBEXT_IN" --artifacts-dir="$WEBEXT_OUT" --ignore-files=test/XSS_test.js SIGNED="$XPI_DIR/noscript_security_suite-$VER-an+fx.xpi" if [ -f "$SIGNED" ]; then mv "$SIGNED" "$XPI.xpi" |