diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-06 10:48:21 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-06 10:48:21 +0200 |
commit | d499ee302e38c671ee80f2be9bb855c9f7234427 (patch) | |
tree | 27d863bd5c92e30b4ebb56793075754209ca44bc | |
parent | c655a7cf9590b44afbb288c5bb30874e7d172519 (diff) | |
download | k8055-d499ee302e38c671ee80f2be9bb855c9f7234427.zip k8055-d499ee302e38c671ee80f2be9bb855c9f7234427.tar.gz |
add i[nstall] option to build.sh
-rwxr-xr-x | build.sh | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -38,6 +38,11 @@ function cmake_make() { cd .. } +function cmake_install() { + cmake_init + echo -e " * install" && cd $BUILD_DIR && sudo make install && cd .. || exit 1 +} + function cmake_tests() { cmake_init echo -e " * execute tests\n" && time ./libk8055/test @@ -46,11 +51,12 @@ function cmake_tests() { if [ $# -eq 0 ]; then echo "usage $0 [cmds list]" echo "cmds may be" - echo " r[m] => all built, temp and cache files" - echo " c[lean] => remove cache files" - echo " m[ake] => launch the build process" - echo " t[ests] => execute tests" - echo "ex: $0 r m pkg x" + echo " r[m] => all built, temp and cache files" + echo " c[lean] => remove cache files" + echo " m[ake] => launch the build process" + echo " t[ests] => execute tests" + echo " i[nstall] => install libk8055 k8055, and k8055gui" + echo "ex: $0 r m t i" exit 1 fi @@ -64,6 +70,8 @@ for arg in $@; do cmd="cmake_make";; t|test) cmd="cmake_tests";; + i|install) + cmd="cmake_install";; *) echo "unknown command ${arg}" && exit 1 esac |