aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhoogle-test/run5
-rwxr-xr-xhtml-test/run5
-rwxr-xr-xhypsrc-test/run5
-rwxr-xr-xlatex-test/run5
4 files changed, 12 insertions, 8 deletions
diff --git a/hoogle-test/run b/hoogle-test/run
index 5e17ad0f..3e72be80 100755
--- a/hoogle-test/run
+++ b/hoogle-test/run
@@ -1,5 +1,6 @@
-#!/bin/bash
+#!/usr/bin/env bash
export HADDOCK_PATH=$(which haddock)
LIB_PATH="$(dirname "$BASH_SOURCE")/../haddock-test/src/"
-runhaskell -i:"$LIB_PATH" "Main.hs" $@
+MAIN_PATH="$(dirname "$BASH_SOURCE")/Main.hs"
+runhaskell -i:"$LIB_PATH" $MAIN_PATH $@
diff --git a/html-test/run b/html-test/run
index 5e17ad0f..3e72be80 100755
--- a/html-test/run
+++ b/html-test/run
@@ -1,5 +1,6 @@
-#!/bin/bash
+#!/usr/bin/env bash
export HADDOCK_PATH=$(which haddock)
LIB_PATH="$(dirname "$BASH_SOURCE")/../haddock-test/src/"
-runhaskell -i:"$LIB_PATH" "Main.hs" $@
+MAIN_PATH="$(dirname "$BASH_SOURCE")/Main.hs"
+runhaskell -i:"$LIB_PATH" $MAIN_PATH $@
diff --git a/hypsrc-test/run b/hypsrc-test/run
index 5e17ad0f..3e72be80 100755
--- a/hypsrc-test/run
+++ b/hypsrc-test/run
@@ -1,5 +1,6 @@
-#!/bin/bash
+#!/usr/bin/env bash
export HADDOCK_PATH=$(which haddock)
LIB_PATH="$(dirname "$BASH_SOURCE")/../haddock-test/src/"
-runhaskell -i:"$LIB_PATH" "Main.hs" $@
+MAIN_PATH="$(dirname "$BASH_SOURCE")/Main.hs"
+runhaskell -i:"$LIB_PATH" $MAIN_PATH $@
diff --git a/latex-test/run b/latex-test/run
index 5e17ad0f..3e72be80 100755
--- a/latex-test/run
+++ b/latex-test/run
@@ -1,5 +1,6 @@
-#!/bin/bash
+#!/usr/bin/env bash
export HADDOCK_PATH=$(which haddock)
LIB_PATH="$(dirname "$BASH_SOURCE")/../haddock-test/src/"
-runhaskell -i:"$LIB_PATH" "Main.hs" $@
+MAIN_PATH="$(dirname "$BASH_SOURCE")/Main.hs"
+runhaskell -i:"$LIB_PATH" $MAIN_PATH $@