aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-09-05 15:49:19 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-09-05 16:00:14 +0200
commitebd9664313c0a1984fc9a06d0e247e4832212957 (patch)
treebf97f06e739be4e8a5dc1a231f5f513233917698
parent4c019f382762f55e9595b151e186cf360d0605fa (diff)
*.sh -> src
-rw-r--r--Makefile6
-rwxr-xr-xsrc/extract-elm.sh (renamed from extract-elm.sh)0
-rwxr-xr-xsrc/extract-nix.sh (renamed from extract-nix.sh)0
-rwxr-xr-xsrc/extract.sh (renamed from extract.sh)2
4 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a38b3c4..ef3ecb6 100644
--- a/Makefile
+++ b/Makefile
@@ -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')