aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-12-24 18:51:17 +0530
committerAkshay Nair <phenax5@gmail.com>2024-12-24 18:51:17 +0530
commit70e3920556496e5fecb5fedddf1067b2522fcac7 (patch)
tree7e4e88023bdcd5b13dde738f7afedd533a6d7fcd /justfile
parentdfdf1600ba251f6b3cfef85f6904d79a1c60b49d (diff)
downloadchelleport-70e3920556496e5fecb5fedddf1067b2522fcac7.tar.gz
chelleport-70e3920556496e5fecb5fedddf1067b2522fcac7.zip
Add setup for ocr with tesseract
Diffstat (limited to 'justfile')
-rw-r--r--justfile12
1 files changed, 11 insertions, 1 deletions
diff --git a/justfile b/justfile
index 8fc38cd..b1ad23d 100644
--- a/justfile
+++ b/justfile
@@ -4,11 +4,13 @@ default:
run *args:
cabal run chelleport -- {{args}}
+runw *args:
+ nodemon -e .hs,.cpp -w bin -w src -w cpp --exec 'clear && just run {{args}}'
+
test *args:
cabal test {{args}}
testw *args:
- # nodemon -e .hs -w src --exec 'ghcid -c "cabal repl test:specs" -T :main'
nodemon -e .hs -w src -w specs --exec 'clear && just test {{args}}'
build:
@@ -16,3 +18,11 @@ build:
appimage:
nix bundle --bundler github:ralismark/nix-appimage
+
+# lib:
+# @mkdir -p dist-lib;
+# gcc -o dist-lib/libchelleport.so \
+# cpp/libchelleport.cpp \
+# -shared \
+# -lstdc++ \
+# $(pkg-config --libs tesseract lept);