mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
23 lines
575 B
Bash
Executable file
23 lines
575 B
Bash
Executable file
#!/bin/sh
|
|
|
|
LUA_INTERPR="lua5.3"
|
|
|
|
# Uncomment to enable coding style check
|
|
# make -s check-format || (echo 'Please format your code with `make format`' && false)
|
|
|
|
if which ${LUA_INTERPR} 2>&1 >/dev/null; then
|
|
if hash ${LUA_INTERPR} 2>/dev/null; then
|
|
# Sort locales
|
|
for fname in `ls scripts/locales`; do
|
|
full_path=scripts/locales/${fname}
|
|
|
|
if ! git diff --staged --quiet $full_path; then
|
|
locale=${fname%%.lua}
|
|
tools/localization/localize.sh sort $locale
|
|
git add $full_path
|
|
fi
|
|
done
|
|
else
|
|
echo "$0: ${LUA_INTERPR} could not be found"
|
|
fi
|
|
fi
|