LBRY-Vault/contrib/deterministic-build/check_submodules.sh
SomberNight 16bac5fd73
rm qt icons file
so we don't need pyrcc5, which is not deterministic,
and so we don't need the submodule for the icons

based on electrumsv/electrumsv@bf8802c2ea
2019-02-01 20:15:28 +01:00

28 lines
No EOL
583 B
Bash
Executable file

#!/usr/bin/env bash
here=$(dirname "$0")
test -n "$here" -a -d "$here" || exit
cd ${here}/../..
git submodule init
git submodule update
function get_git_mtime {
if [ $# -eq 1 ]; then
git log --pretty=%at -n1 -- $1
else
git log --pretty=%ar -n1 -- $2
fi
}
fail=0
if [ $(date +%s -d "2 weeks ago") -gt $(get_git_mtime "contrib/deterministic-build/electrum-locale/") ]; then
echo "Last update from electrum-locale is older than 2 weeks."\
"Please update it to incorporate the latest translations from crowdin."
fail=1
fi
exit ${fail}