From 3f2944ee84bcceb29afadebb40c8c46641a5d6c4 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 27 Mar 2016 17:18:45 -0700 Subject: [PATCH] kodev: add active command --- kodev | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/kodev b/kodev index 2c8557a57..323f8f476 100755 --- a/kodev +++ b/kodev @@ -213,10 +213,10 @@ usage: run OPTIONS: - -h, --screen-height set height of the emulator screen (default: 720) - -w, --screen-width set width of the emulator screen (default: 540) - --no-build run reader without rebuilding - --disable-touch use this if you want to simulate keyboard only devices + -h=X, --screen-height=X set height of the emulator screen (default: 720) + -w=X, --screen-width=X set width of the emulator screen (default: 540) + --no-build run reader without rebuilding + --disable-touch use this if you want to simulate keyboard only devices " screen_width=540 screen_height=720 @@ -321,6 +321,7 @@ OPTIONS: test_path="${test_path}/$2" fi busted --lua=./luajit ${opts} \ + --lazy \ -o ./spec/$1/unit/verbose_print \ --exclude-tags=notest ${test_path} @@ -364,14 +365,15 @@ usage: $0 COMMAND Supported commands: - fetch-thirdparty Fetch thirdparty dependencies for build + activate Bootstrap shell environment for kodev build Build KOReader 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 run Run KOReader - wbuilder Run wbuilder.lua script (useful for building new UI widget) 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 @@ -381,6 +383,10 @@ if [ $# -lt 1 ]; then fi case $1 in + activate) + export PATH="${PATH}:${CURDIR}" + eval $(luarocks path bin) + ;; fetch-thirdparty) kodev-fetch-thirdparty ;;