kodev(feat): check for submodules in build command

This commit is contained in:
Qingping Hou
2016-05-29 22:57:04 -07:00
parent c0846ee13c
commit c127a33acc

7
kodev
View File

@@ -11,6 +11,12 @@ function assert_ret_zero {
fi
}
function check_submodules {
if [ -n "`git submodule status | grep -E '^\-'`" ]; then
kodev-fetch-thirdparty
fi
}
function setup_env {
files=$(ls -d ./koreader-emulator-*/koreader)
assert_ret_zero $? "Emulator not found, please build it first."
@@ -101,6 +107,7 @@ ${SUPPORTED_TARGETS}"
assert_ret_zero $?
;;
*)
check_submodules
make
assert_ret_zero $? "Failed to build emulator!"
setup_env