Add git-lfs tools check, drop lzip requirement

This commit is contained in:
mfonville
2019-11-05 10:07:53 +01:00
parent 290e847e96
commit 4e1614725e
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ SCRIPTS="$TOP/scripts"
. "$SCRIPTS/inc.tools.sh"
# Check tools
checktools git lzip
checktools git git-lfs
argument() {
case $1 in
+5
View File
@@ -43,6 +43,11 @@ checktools() {
echo 'aapt is outdated. Install a more recent version from the Android SDK and findable in sh $PATH.' >&2
missing="$missing $command"
fi;;
git-lfs)
if ! git lfs env | grep -q -e "filter.lfs.clean" || ! git lfs env | grep -q -e "filter.lfs.smudge" || ! git lfs env | grep -q -e "filter.lfs.process"; then
echo 'Git LFS has not been set-up, please run "git lfs install".' >&2
missing="$missing $command"
fi;;
#*)
#echo "$command tool found and it is up to date." >&2;;
esac
+1 -1
View File
@@ -29,7 +29,7 @@ SCRIPTS="$TOP/scripts"
. "$SCRIPTS/inc.sourceshelper.sh"
# Check tools
checktools aapt coreutils git lzip
checktools aapt coreutils git git-lfs
createcommit(){
getapkproperties "$1"