mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
23 lines
499 B
Bash
Executable file
23 lines
499 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if which lua 2>&1 >/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
|
|
fi
|
|
|
|
if which uglifyjs 2>&1 >/dev/null; then
|
|
# Minify scripts
|
|
if ! git diff --staged --quiet httpdocs/js; then
|
|
make minify
|
|
git add -u httpdocs/js/*.min.js
|
|
git add -u httpdocs/js/*.min.js.map
|
|
fi
|
|
fi
|