YUKI Hiroshi
null+****@clear*****
Wed Apr 29 16:06:30 JST 2015
YUKI Hiroshi 2015-04-29 16:06:30 +0900 (Wed, 29 Apr 2015) New Revision: bd27178964f7f53c7e614c29b34b034579ec12e1 https://github.com/droonga/droonga-engine/commit/bd27178964f7f53c7e614c29b34b034579ec12e1 Message: Allow to control which packages are installed from repository or not Modified files: install.sh Modified: install.sh (+27 -5) =================================================================== --- install.sh 2015-04-29 12:47:58 +0900 (8690ffc) +++ install.sh 2015-04-29 16:06:30 +0900 (bb59697) @@ -49,6 +49,7 @@ TEMPDIR=/tmp/install-$NAME : ${VERSION:=release} : ${HOST:=Auto Detect} : ${PORT:=10031} +: ${INSTALL_FROM_REPOSITORY:=$NAME} case $(uname) in Darwin|*BSD|CYGWIN*) sed="sed -E" ;; @@ -223,11 +224,32 @@ install_gem_from_repository() { install_from_repository() { gem install bundler --no-ri --no-rdoc - install_gem_from_repository rroonga $RROONGA_REPOSITORY_URL - install_gem_from_repository groonga-command $GROONGA_COMMAND_REPOSITORY_URL - install_gem_from_repository groonga-command-parser $GROONGA_COMMAND_PARSER_REPOSITORY_URL - install_gem_from_repository droonga-client-ruby $DROONGA_CLIENT_RUBY_REPOSITORY_URL - install_gem_from_repository drndump $DRNDUMP_REPOSITORY_URL + if echo "$INSTALL_FROM_REPOSITORY" | grep "rroonga" + then + install_gem_from_repository rroonga $RROONGA_REPOSITORY_URL + install_gem_from_repository groonga-command $GROONGA_COMMAND_REPOSITORY_URL + install_gem_from_repository groonga-command-parser $GROONGA_COMMAND_PARSER_REPOSITORY_URL + else + rm -rf $TEMPDIR/rroonga + rm -rf $TEMPDIR/groonga-command + rm -rf $TEMPDIR/groonga-command-parser + fi + + if echo "$INSTALL_FROM_REPOSITORY" | grep "client" + then + install_gem_from_repository droonga-client-ruby $DROONGA_CLIENT_RUBY_REPOSITORY_URL + else + rm -rf $TEMPDIR/droonga-client-ruby + fi + + + if echo "$INSTALL_FROM_REPOSITORY" | grep "drndump" + then + install_gem_from_repository drndump $DRNDUMP_REPOSITORY_URL + else + rm -rf $TEMPDIR/drndump + fi + install_gem_from_repository $NAME $REPOSITORY_URL } -------------- next part -------------- HTML����������������������������...下載