[Groonga-commit] droonga/droonga-engine at 5aa1ce3 [master] Install from repository only when "master" is specified as the version

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Sep 12 19:38:40 JST 2014


YUKI Hiroshi	2014-09-12 19:38:40 +0900 (Fri, 12 Sep 2014)

  New Revision: 5aa1ce3c6b86785d71dbe42c1c698f04519176d8
  https://github.com/droonga/droonga-engine/commit/5aa1ce3c6b86785d71dbe42c1c698f04519176d8

  Message:
    Install from repository only when "master" is specified as the version

  Modified files:
    install-master.sh

  Modified: install-master.sh (+17 -2)
===================================================================
--- install-master.sh    2014-09-12 19:29:31 +0900 (86fbb01)
+++ install-master.sh    2014-09-12 19:38:40 +0900 (62815c4)
@@ -13,12 +13,22 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
+# Usage:
+#   Install a release version:
+#     curl https://raw.githubusercontent.com/droonga/droonga-engine/master/install.sh | sudo bash
+#   Install the latest revision from the repository:
+#     curl https://raw.githubusercontent.com/droonga/droonga-engine/master/install.sh | INSTALL_VERSION=master sudo bash
+
 NAME=droonga-engine
 SCRIPT_URL=https://raw.githubusercontent.com/droonga/$NAME/master/install
 REPOSITORY_URL=https://github.com/droonga/$NAME.git
 USER=$NAME
 DROONGA_BASE_DIR=/home/$USER/droonga
 
+if [ "$INSTALL_VERSION" = "" ]; then
+  export INSTALL_VERSION=release
+fi
+
 exist_command() {
   type "$1" > /dev/null 2>&1
 }
@@ -98,8 +108,13 @@ install_service_script() {
 install_in_debian() {
   apt-get update
   apt-get -y upgrade
-  apt-get install -y ruby ruby-dev build-essential git
-  install_master
+  apt-get install -y ruby ruby-dev build-essential
+  if [ "$INSTALL_VERSION" = "master" ]; then
+    apt-get install -y git
+    install_master
+  else
+    gem install droonga-engine --no-rdoc --no-ri
+  fi
 
   prepare_user
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index