Generating ML file with words.
This commit is contained in:
parent
0644c6cf43
commit
dd84d98750
5
dune
5
dune
|
@ -1,3 +1,8 @@
|
|||
(rule
|
||||
(target "word.ml")
|
||||
(deps (glob_files "words"))
|
||||
(action (bash "./gen_words.sh")))
|
||||
|
||||
(executable
|
||||
(name evilWordle)
|
||||
(libraries js_of_ocaml brr lwd brr-lwd)
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#! /bin/bash
|
||||
|
||||
(echo 'let list = [';
|
||||
cat words | sed 's/^\(.*\)/"\1";/g';
|
||||
echo ']') | sed 's/;]/]/g' > word.ml
|
||||
|
Loading…
Reference in New Issue