kodev: add active command

pull/1927/head
Qingping Hou 8 years ago
parent 26f5c8861b
commit 3f2944ee84

16
kodev

@ -213,8 +213,8 @@ usage: run <OPTIONS> <ARGS>
OPTIONS: OPTIONS:
-h, --screen-height set height of the emulator screen (default: 720) -h=X, --screen-height=X set height of the emulator screen (default: 720)
-w, --screen-width set width of the emulator screen (default: 540) -w=X, --screen-width=X set width of the emulator screen (default: 540)
--no-build run reader without rebuilding --no-build run reader without rebuilding
--disable-touch use this if you want to simulate keyboard only devices --disable-touch use this if you want to simulate keyboard only devices
" "
@ -321,6 +321,7 @@ OPTIONS:
test_path="${test_path}/$2" test_path="${test_path}/$2"
fi fi
busted --lua=./luajit ${opts} \ busted --lua=./luajit ${opts} \
--lazy \
-o ./spec/$1/unit/verbose_print \ -o ./spec/$1/unit/verbose_print \
--exclude-tags=notest ${test_path} --exclude-tags=notest ${test_path}
@ -364,14 +365,15 @@ usage: $0 COMMAND <ARGS>
Supported commands: Supported commands:
fetch-thirdparty Fetch thirdparty dependencies for build activate Bootstrap shell environment for kodev
build Build KOReader build Build KOReader
clean Clean KOReader build clean Clean KOReader build
fetch-thirdparty Fetch thirdparty dependencies for build
log Tail log stream for a running KOReader app
release Build KOReader release package release Build KOReader release package
run Run KOReader run Run KOReader
wbuilder Run wbuilder.lua script (useful for building new UI widget)
test Run tests test Run tests
log Tail log stream for a running KOReader app wbuilder Run wbuilder.lua script (useful for building new UI widget)
" "
if [ $# -lt 1 ]; then if [ $# -lt 1 ]; then
@ -381,6 +383,10 @@ if [ $# -lt 1 ]; then
fi fi
case $1 in case $1 in
activate)
export PATH="${PATH}:${CURDIR}"
eval $(luarocks path bin)
;;
fetch-thirdparty) fetch-thirdparty)
kodev-fetch-thirdparty kodev-fetch-thirdparty
;; ;;

Loading…
Cancel
Save