diff options
-rw-r--r-- | Makefile | 6 | ||||
-rwxr-xr-x | src/extract-elm.sh (renamed from extract-elm.sh) | 0 | ||||
-rwxr-xr-x | src/extract-nix.sh (renamed from extract-nix.sh) | 0 | ||||
-rwxr-xr-x | src/extract.sh (renamed from extract.sh) | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -1,11 +1,11 @@ test: test-elm test-nix test-elm: tests/elm.elm - ./extract-elm.sh tests/elm.elm | \ + src/extract-elm.sh tests/elm.elm | \ jq .text -r | \ cmp tests/expect -test-nix: tests/nix.nix - ./extract-nix.sh tests/nix.nix | \ +test-nix: tests/nix.nix + src/extract-nix.sh tests/nix.nix | \ jq .text -r | \ cmp tests/expect diff --git a/extract-elm.sh b/src/extract-elm.sh index 375d8a8..375d8a8 100755 --- a/extract-elm.sh +++ b/src/extract-elm.sh diff --git a/extract-nix.sh b/src/extract-nix.sh index e092db2..e092db2 100755 --- a/extract-nix.sh +++ b/src/extract-nix.sh diff --git a/extract.sh b/src/extract.sh index ba611d3..cc7dfc6 100755 --- a/extract.sh +++ b/src/extract.sh @@ -18,7 +18,7 @@ find "$input_dir" -type f | continue fi - ./extract-$ext.sh "$input_file" + "$(dirname "$0")"/extract-$ext.sh "$input_file" done | while read -r item; do start_row=$(echo "$item" | jq '.match.start.row') |