2021-02-26 13:36:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-05-08 06:22:37 +00:00
|
|
|
VTOY_PATH=$PWD/../
|
2021-02-26 13:36:53 +00:00
|
|
|
|
2021-05-08 06:22:37 +00:00
|
|
|
echo "checking languages.json ..."
|
|
|
|
sh $VTOY_PATH/LANGUAGES/check.sh $VTOY_PATH || exit 1
|
2021-02-26 13:36:53 +00:00
|
|
|
|
2021-05-08 06:22:37 +00:00
|
|
|
echo "generating languages.json ..."
|
2021-02-26 13:36:53 +00:00
|
|
|
|
2021-05-08 06:22:37 +00:00
|
|
|
echo "var vtoy_language_data = " > languages.js
|
|
|
|
cat $VTOY_PATH/LANGUAGES/languages.json >> languages.js
|
|
|
|
echo ";" >> languages.js
|
2021-02-26 13:36:53 +00:00
|
|
|
|
2021-05-08 06:22:37 +00:00
|
|
|
dos2unix languages.js
|
2021-02-26 13:36:53 +00:00
|
|
|
|
|
|
|
rm -f WebUI/static/js/languages.js
|
|
|
|
mv languages.js WebUI/static/js/
|
|
|
|
|
2021-05-08 06:22:37 +00:00
|
|
|
echo "====== SUCCESS =========="
|