melawy-welcome/launch.sh

15 lines
347 B
Bash
Raw Normal View History

2021-09-20 05:54:03 +05:00
#!/bin/bash
# Script to generate mo files in a temp locale folder
# Use it only for testing purpose
rm -rf locale
mkdir locale
cd po
for lang in $(ls *.po); do
lang=${lang::-3}
mkdir -p ../locale/${lang//_/-}/LC_MESSAGES
msgfmt -c -o ../locale/${lang//_/-}/LC_MESSAGES/cachyos-hello.mo $lang.po
done
cd ..
./build/cachyos-hello --dev