[Groonga-commit] groonga/groonga at dacd973 [master] Use PPA on Ubuntu

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Apr 28 17:27:46 JST 2014


Kouhei Sutou	2014-04-28 17:27:46 +0900 (Mon, 28 Apr 2014)

  New Revision: dacd973cd2528ab642dce991cfbebd2dc81d1558
  https://github.com/groonga/groonga/commit/dacd973cd2528ab642dce991cfbebd2dc81d1558

  Message:
    Use PPA on Ubuntu

  Modified files:
    data/travis/setup.sh

  Modified: data/travis/setup.sh (+13 -11)
===================================================================
--- data/travis/setup.sh    2014-04-28 17:21:40 +0900 (1e2ce6a)
+++ data/travis/setup.sh    2014-04-28 17:27:46 +0900 (729b504)
@@ -28,25 +28,27 @@ if [ "$GROONGA_MASTER" = "yes" ]; then
     sudo make install > /dev/null
     cd ..
 else
-    distribution=$(lsb_release --short --id | tr 'A-Z' 'a-z')
-    code_name=$(lsb_release --short --codename)
+    sudo apt-get purge libzmq3
+
     case $distribution in
 	debian)
+	    distribution=$(lsb_release --short --id | tr 'A-Z' 'a-z')
+	    code_name=$(lsb_release --short --codename)
 	    component=main
+	    apt_url_base=http://packages.groonga.org
+	    cat <<EOF | sudo tee /etc/apt/sources.list.d/groonga.list
+deb ${apt_url_base}/${distribution}/ ${code_name} ${component}
+deb-src ${apt_url_base}/${distribution}/ ${code_name} ${component}
+EOF
+	    sudo apt-get update -qq
+	    sudo apt-get install -qq -y --allow-unauthenticated groonga-keyring
 	    ;;
 	ubuntu)
-	    component=universe
+	    sudo apt-get install -qq -y -V software-properties-common
+	    sudo add-apt-repository -y ppa:groonga/ppa
 	    ;;
     esac
-    apt_url_base=http://packages.groonga.org
-    cat <<EOF | sudo tee /etc/apt/sources.list.d/groonga.list
-deb ${apt_url_base}/${distribution}/ ${code_name} ${component}
-deb-src ${apt_url_base}/${distribution}/ ${code_name} ${component}
-EOF
 
-    sudo apt-get purge libzmq3
-    sudo apt-get update -qq
-    sudo apt-get install -qq -y --allow-unauthenticated groonga-keyring
     sudo apt-get update -qq
     sudo apt-get install -qq -y -V groonga libgroonga-dev
 fi
-------------- next part --------------
HTML����������������������������...
Download 



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