Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (46 loc) · 1.53 KB
/
Copy pathMakefile
File metadata and controls
62 lines (46 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
setup:
pip install uv
uv sync
.PHONY: sample
sample:
# mv dict/*.* dict/
ls dict
mkdir -p output
ls -l | wc -l
uv run python ./bin/convert_all.py --input_folder=dict --output_folder=output --extension=tab --filter=Viet-Trung
uv run python ./bin/dict_summary.py --dict_dir=dict --output_dir=output --read_only=no --showfull=False
echo "Released sample dictionaries"
$(MAKE) space
all:
# mv dict/*.* dict/
ls dict
mkdir -p output
ls -l | wc -l
uv run python ./bin/convert_all.py --input_folder=dict --output_folder=output --extension=tab
uv run python ./bin/dict_summary.py --dict_dir=dict --output_dir=output --read_only=no
echo "Released all dictionaries"
$(MAKE) space
space:
du -h --max-depth=1 . | sort -hr
find . -type f -size +50M -exec ls -lh {} +
df -h .
test:
echo "Run test the venv"
uv run python ./bin/test.py
to_pleco:
echo "Convert to Pleco format"
uv run python ./bin/tsv_to_pleco.py --folder=dict --pattern=Viet-Trung.tab
dict_stats_new:
uv run python ./bin/dict_summary.py --dict_dir=dict --output_dir=output --read_only=no
dict_stats_old:
uv run python ./bin/dict_summary.py --dict_dir=dict --output_dir=output --read_only=yes
dict_ext_stats_new:
uv run python ./bin/dict_summary.py --dict_dir=ext-dict --output_dir=ext-output --read_only=no
dict_ext_stats_old:
uv run python ./bin/dict_summary.py --dict_dir=ext-dict --output_dir=ext-output --read_only=yes
clean:
# git reset --hard
git clean -fdx
ruff:
uv run ruff check ./bin/convert_all.py --fix
uv run ruff check ./bin/dict_summary.py --fix