2025-05-06 20:49:05 -04:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2025-05-06 22:23:32 -04:00
|
|
|
#outdir is processed/lang/path to output file
|
|
|
|
outdir="processed/$LANGUAGE/"$(dirname $1)
|
2025-05-06 20:49:05 -04:00
|
|
|
# $1 is the input file
|
|
|
|
input=$1
|
2025-05-06 22:23:32 -04:00
|
|
|
output=$(basename $1).md
|
|
|
|
mkdir -p "$outdir"
|
|
|
|
echo python3 "$main" --to-markdown --assets-dir static/ -o "$outdir/$output" "$input" "translations/$LANGUAGE/LC_MESSAGES/$posource"
|
|
|
|
python3 "$main" --to-markdown --assets-dir static/ -o "$outdir/$output" "$input" "translations/$LANGUAGE/LC_MESSAGES/$posource" 2>> err.$LANGUAGE.log 1>> log.$LANGUAGE.log
|
|
|
|
python3 clean_markdown.py "$outdir/$output"
|