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