[openrtm-commit:01685] r631 - trunk/OpenRTM-aist-Python/installer/install_scripts
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 1月 29日 (金) 15:23:50 JST
Author: kawauchi
Date: 2016-01-29 15:23:50 +0900 (Fri, 29 Jan 2016)
New Revision: 631
Removed:
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_debian.sh
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_fedora.sh
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_ubuntu.sh
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_vine.sh
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_debian.sh
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_fedora.sh
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_ubuntu.sh
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_vine.sh
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_debian.sh
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_fedora.sh
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_ubuntu.sh
trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_vine.sh
Log:
[compat, installer] Unnecessary installation scripts (for C ++) have been deleted. refs #3434
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_debian.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_debian.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_debian.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,172 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_debian.sh
-# @brief OpenRTM-aist dependent packages install script for Debian-sarge
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-# Harumi Miyamoto
-#
-
-#---------------------------------------
-# ããã±ã¼ã¸ãªã¹ã
-#---------------------------------------
-omni="libomniorb4 libomniorb4-dev omniidl4 omniorb4-nameserver"
-ace="libace libace-dev"
-openrtm="openrtm-aist openrtm-aist-doc openrtm-aist-dev openrtm-aist-example"
-openrtm04="openrtm-aist=0.4.2-1 openrtm-aist-doc=0.4.2-1 openrtm-aist-dev=0.4.2-1 openrtm-aist-example=0.4.2-1"
-pyyaml="python-support python-yaml"
-devel="gcc g++ make uuid-dev"
-packages="$devel $omni $ace $pyyaml $openrtm"
-u_packages="$omni $ace $openrtm "
-
-
-#---------------------------------------
-# ãã±ã¼ã«ã®è¨èªç¢ºèª
-#---------------------------------------
-check_lang()
-{
-lang="en"
-
-locale | grep ja_JP > /dev/null && lang="jp"
-
-if test "$lang" = "jp" ;then
- msg1="ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã確èªãã¦ãã ããã\nDebian以å¤ã®OSã®å¯è½æ§ãããã¾ãã"
- msg2="ã³ã¼ããã¼ã ï¼ "
- msg3="ãã®OSã¯ãµãã¼ãããã¦ããã¾ããã"
- msg4=" OpenRTM-aistã®ãªãã¸ããªãç»é²ããã¦ãã¾ããã"
- msg5="Source.listã«OpenrRTM-aistã®ãªãã¸ããªï¼"
- msg6="ã追å ãã¾ããããããã§ããï¼ (y/n) [y] "
- msg7="ä¸æãã¾ãã"
- msg8="ã«ã¼ãã¦ã¼ã¶ã¼ã§å®è¡ãã¦ãã ããã"
- msg9="ã¤ã³ã¹ãã¼ã«ä¸ã§ã..."
- msg10="å®äº"
- msg11="ã¢ã³ã¤ã³ã¹ãã¼ã«ä¸ã§ã"
-else
- msg1="This distribution may not be debian/ubuntu."
- msg2="The code name is : "
- msg3="This OS is not supported."
- msg4="No repository entry for OpenRTM-aist is configured in your system."
- msg5="repository entry for OpenrRTM-aist: "
- msg6="Do you want to add the repository entry for OpenrRTM-aist in source.list? (y/n) [y] "
- msg7="Abort."
- msg8="This script should be run as root."
- msg9="Now installing: "
- msg10="done."
- msg11="Now uninstalling: "
-
-fi
-
-}
-
-#---------------------------------------
-# ãªãã¸ããªãµã¼ã
-#---------------------------------------
-create_srclist () {
- cnames="sarge etch lenny"
- for c in $cnames; do
- if test -f "/etc/apt/sources.list"; then
- res=`grep $c /etc/apt/sources.list`
- else
- echo $msg1
- exit
- fi
- if test ! "x$res" = "x" ; then
- code_name=$c
- fi
- done
- if test ! "x$code_name" = "x"; then
- echo $msg2 $code_name
- else
- echo $msg3
- exit
- fi
- openrtm_repo="deb http://www.openrtm.org/pub/Linux/debian/ $code_name main"
-}
-
-#---------------------------------------
-# ã½ã¼ã¹ãªã¹ãæ´æ°é¢æ°ã®å®ç¾©
-#---------------------------------------
-update_source_list () {
- rtmsite=`grep openrtm /etc/apt/sources.list`
- if test "x$rtmsite" = "x" ; then
- echo $msg4
- echo $msg5
- echo " " $openrtm_repo
- read -p $msg6 kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo $msg7
- exit 0
- else
- echo $openrtm_repo >> /etc/apt/sources.list
- fi
- fi
-}
-
-#----------------------------------------
-# root ãã©ããããã§ãã¯
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo $msg8
- echo $msg7
- echo ""
- exit 1
- fi
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ã¤ã³ã¹ãã¼ã«é¢æ°
-#----------------------------------------
-install_packages () {
- for p in $*; do
- echo $msg9 $pã
- apt-get install $p
- echo $msg10
- echo ""
- done
-}
-
-#------------------------------------------------------------
-# ãªã¹ããéé ã«ãã
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ãã¢ã³ã¤ã³ã¹ãã¼ã«ãã
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo $msg11 $p
- aptitude remove $p
- echo $msg10
- echo ""
- done
-}
-
-#---------------------------------------
-# ã¡ã¤ã³
-#---------------------------------------
-check_lang
-check_root
-
-#if test "x$1" = "x0.4.2" || test "x$1" = "x0.4" ; then
- openrtm=$openrtm04
- packages="$devel $omni $ace $pyyaml $openrtm"
-#fi
-
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $u_packages`
-else
-
- create_srclist
- update_source_list
- apt-get update
- install_packages $packages
-fi
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_fedora.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_fedora.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_fedora.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,134 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_fedora.sh
-# @brief OpenRTM-aist dependent packages install script for Fedora
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-#
-# このシェルスクリプトは、aceおよびomniORBのパッケージをインストールし、
-# fedoraの開発環境を構築します。
-#
-# $Id$
-#
-
-#---------------------------------------
-# パッケージリスト
-#---------------------------------------
-omni="omniORB omniORB-devel omniORB-doc omniORB-servers omniORB-utils omniORB-bootscripts"
-ace="ace ace-devel"
-openrtm="OpenRTM-aist OpenRTM-aist-devel OpenRTM-aist-doc OpenRTM-aist-example PyYAML"
-openrtm04="OpenRTM-aist-0.4.2 OpenRTM-aist-devel-0.4.2 OpenRTM-aist-doc-0.4.2 OpenRTM-aist-example-0.4.2 PyYAML"
-packages="gcc-c++ libuuid-devel $omni $ace $openrtm"
-
-
-#----------------------------------------
-# root かどうかをチェック
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo "This script should be run by root user."
- echo "Abort."
- echo ""
- exit 1
- fi
-}
-
-#---------------------------------------
-# インストール済パッケージリスト
-#---------------------------------------
-rpm_qa="/tmp/yum_list.txt"
-get_pkg_list () {
- rpm -qa > $rpm_qa
-}
-clean_pkg_list () {
- rm -f $rpm_qa
-}
-
-#---------------------------------------
-# リポジトリサイト設定ファイルを生成
-#---------------------------------------
-openrtm_repo () {
-cat <<EOF
-[openrtm]
-name=Fedora \$releasever - \$basearch
-failovermethod=priority
-baseurl=http://www.openrtm.org/pub/Linux/Fedora/releases/\$releasever/Fedora/\$basearch/os/Packages
-enabled=1
-gpgcheck=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
-EOF
-}
-create_repo() {
- repo="/etc/yum.repos.d/openrtm.repo"
- if test ! -f $repo ; then
- echo "OpenRTM-aist のリポジトリが登録されていません。"
- echo "OpenRTM-aist のリポジトリ: "
- echo " http://www.openrtm.org/pub/Linux/Fedora/"
- read -p "を追加します。よろしいですか? (y/n) [y] " kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo "中断します。"
- exit 0
- else
- openrtm_repo > /etc/yum.repos.d/openrtm.repo
- fi
- fi
-}
-
-#----------------------------------------
-# パッケージインストール関数
-#----------------------------------------
-install_packages () {
- for p in $*; do
- ins=`rpm -qa $p`
- if test "x$ins" = "x"; then
- echo "Now installing: " $p
- yum install $p
- echo "done."
- echo ""
- else
- echo $p "is already installed."
- echo ""
- fi
- done
-}
-
-#------------------------------------------------------------
-# リストを逆順にする
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# パッケージをアンインストールする
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo "Now uninstalling: " $p
- yum erase $p
- echo "done."
- echo ""
- done
-}
-
-#---------------------------------------
-# メイン
-#---------------------------------------
-check_root
-
-#if test "x$1" = "x0.4.2" || test "x$1" = "x0.4" ; then
- openrtm=$openrtm04
- packages="$devel $omni $ace $pyyaml $openrtm"
-#fi
-
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $packages`
-else
- create_repo
- install_packages $packages
-fi
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_ubuntu.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_ubuntu.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_ubuntu.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,172 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_ubuntu.sh
-# @brief OpenRTM-aist dependent packages install script for Debian-sarge
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-# Harumi Miyamoto
-#
-
-#---------------------------------------
-# ããã±ã¼ã¸ãªã¹ã
-#---------------------------------------
-omni="libomniorb4 libomniorb4-dev omniidl4 omniorb4-nameserver"
-ace="libace libace-dev"
-openrtm="openrtm-aist openrtm-aist-doc openrtm-aist-dev openrtm-aist-example python-yaml"
-openrtm04="openrtm-aist=0.4.2-1 openrtm-aist-doc=0.4.2-1 openrtm-aist-dev=0.4.2-1 openrtm-aist-example=0.4.2-1"
-devel="gcc g++ make uuid-dev"
-packages="$devel $omni $ace $openrtm"
-u_packages="$omni $ace $openrtm "
-
-#---------------------------------------
-# ãã±ã¼ã«ã®è¨èªç¢ºèª
-#---------------------------------------
-check_lang()
-{
-lang="en"
-
-locale | grep ja_JP > /dev/null && lang="jp"
-
-if test "$lang" = "jp" ;then
- msg1="ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã確èªãã¦ãã ããã\nDebianãUbuntu以å¤ã®OSã®å¯è½æ§ãããã¾ãã"
- msg2="ã³ã¼ããã¼ã :"
- msg3="ãã®OSã¯ãµãã¼ããã¦ããã¾ããã"
- msg4="OpenRTM-aist ã®ãªãã¸ããªãç»é²ããã¦ãã¾ããã"
- msg5="Source.list ã« OpenRTM-aist ã®ãªãã¸ããª: "
- msg6="ã追å ãã¾ããããããã§ããï¼(y/n)[y] "
- msg7="ä¸æãã¾ãã"
- msg8="ã«ã¼ãã¦ã¼ã¶ã¼ã§å®è¡ãã¦ãã ããã"
- msg9="ã¤ã³ã¹ãã¼ã«ä¸ã§ã..."
- msg10="å®äº"
- msg11="ã¢ã³ã¤ã³ã¹ãã¼ã«ä¸ã§ã."
-else
- msg1="This distribution may not be debian/ubuntu."
- msg2="The code name is : "
- msg3="This OS is not supported."
- msg4="No repository entry for OpenRTM-aist is configured in your system."
- msg5="repository entry for OpenrRTM-aist: "
- msg6="Do you want to add new repository entry for OpenrRTM-aist in source.list? (y/n) [y] "
- msg7="Abort."
- msg8="This script should be run as root."
- msg9="Now installing: "
- msg10="done."
- msg11="Now uninstalling: "
-fi
-
-}
-
-
-#---------------------------------------
-# ãªãã¸ããªãµã¼ã
-#---------------------------------------
-create_srclist () {
- codename=`sed -n /DISTRIB_CODENAME=/p /etc/lsb-release`
- cnames=`echo "$codename" | sed 's/DISTRIB_CODENAME=//'`
- #cnames="sarge edgy feisty gutsy hardy intrepid"
- for c in $cnames; do
- if test -f "/etc/apt/sources.list"; then
- res=`grep $c /etc/apt/sources.list`
- else
- echo $msg1
- exit
- fi
- if test ! "x$res" = "x" ; then
- code_name=$c
- fi
- done
- if test ! "x$code_name" = "x"; then
- echo $msg2 $code_name
- else
- echo $msg3
- exit
- fi
- openrtm_repo="deb http://www.openrtm.org/pub/Linux/ubuntu/ $code_name main"
-}
-
-#---------------------------------------
-# ã½ã¼ã¹ãªã¹ãæ´æ°é¢æ°ã®å®ç¾©
-#---------------------------------------
-update_source_list () {
- rtmsite=`grep openrtm /etc/apt/sources.list`
- if test "x$rtmsite" = "x" ; then
- echo $msg4
- echo $msg5
- echo " " $openrtm_repo
- read -p $msg6 kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo $msg7
- exit 0
- else
- echo $openrtm_repo >> /etc/apt/sources.list
- fi
- fi
-}
-
-#----------------------------------------
-# root ãã©ããããã§ãã¯
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo $msg8
- echo $msg7
- echo ""
- exit 1
- fi
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ã¤ã³ã¹ãã¼ã«é¢æ°
-#----------------------------------------
-install_packages () {
- for p in $*; do
- echo $msg9 $p
- apt-get install $p
- echo $msg10
- echo ""
- done
-}
-
-#------------------------------------------------------------
-# ãªã¹ããéé ã«ãã
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ãã¢ã³ã¤ã³ã¹ãã¼ã«ãã
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo $msg11 $p
- aptitude remove $p
- echo $msg10
- echo ""
- done
-}
-
-#---------------------------------------
-# ã¡ã¤ã³
-#---------------------------------------
-check_lang
-check_root
-
-#if test "x$1" = "x0.4.2" || test "x$1" = "x0.4" ; then
- openrtm=$openrtm04
- packages="$devel $omni $ace $pyyaml $openrtm"
-#fi
-
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $u_packages`
-else
- create_srclist
- update_source_list
- apt-get update
- install_packages $packages
-fi
-
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_vine.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_vine.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install042_vine.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,168 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_vine.sh
-# @brief OpenRTM-aist dependent packages installation script for Vine Linux
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-#
-# このシェルスクリプトは、aceおよびomniORBのパッケージをインストールし、
-# Vine Linuxの開発環境を構築します。
-#
-#---------------------------------------
-# Vineバージョン特定
-#---------------------------------------
-vinever=`cat /etc/vine-release | sed 's/.*\([0-9].[0-9]\).*/\1/'`
-
-#---------------------------------------
-# リポジトリサーバ
-#---------------------------------------
-openrtm_repo="rpm http://www.openrtm.org/pub/Linux/Vine/apt $vinever/\$(ARCH) main"
-
-#---------------------------------------
-# パッケージリスト
-#---------------------------------------
-omni="omniORB omniORB-devel omniORB-servers omniORB-doc"
-ace="ace ace-devel"
-openrtm="OpenRTM-aist OpenRTM-aist-devel OpenRTM-aist-doc OpenRTM-aist-example PyYAML"
-openrtm04="OpenRTM-aist=0.4.2 OpenRTM-aist-devel=0.4.2 OpenRTM-aist-doc=0.4.2 OpenRTM-aist-example=0.4.2 PyYAML"
-libuuid="e2fsprogs e2fsprogs-devel"
-packages="$libuuid $omni $ace $openrtm"
-#packages_check="$libuuid $omni $ace $openrtm"
-
-
-
-
-#----------------------------------------
-# root かどうかをチェック
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo "This script should be run by root user."
- echo "Abort."
- echo ""
- exit 1
- fi
-}
-
-#---------------------------------------
-# ソースリスト更新関数の定義
-#---------------------------------------
-update_source_list () {
- rtmsite=`grep openrtm /etc/apt/sources.list`
- if test "x$rtmsite" = "x" ; then
- echo "OpenRTM-aist のリポジトリが登録されていません。"
- echo "Source.list に OpenRTM-aist のリポジトリ: "
- echo " " $openrtm_repo
- read -p "を追加します。よろしいですか? (y/n) [y] " kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo "中断します。"
- exit 0
- else
- echo $openrtm_repo >> /etc/apt/sources.list
- fi
- fi
-}
-
-#----------------------------------------
-# チェック
-#----------------------------------------
-
-#----------------------------------------
-# パッケージをインストールする
-#----------------------------------------
-install_packages () {
- for p in $*; do
- if test "x$p" = "x0.4.2" || test "x$p" = "x0.4.2" ; then
- :
- else
- if echo "$p" | grep -q '=0.4.2' ; then
- str=`echo "$p" |sed 's/=0.4.2//'`
- else
- str="$p"
- fi
-
- ins=`rpm -qa $str`
-
- if test "x$ins" = "x"; then
- echo "Now installing: " $p
- apt-get install $p
- echo "done."
- echo ""
- else
- if echo "$ins" |grep -q '0.4.2-0' ; then
-
- if echo "$p" | grep -q '=0.4.2'; then
- echo $ins
- echo $str"-0.4.2 is already installed"
- echo ""
- else
- apt-get install $p
- echo "done."
- echo ""
- fi
-
- elif echo "$ins" |grep -q '1.0.0-0'; then
- echo $ins
- echo $str"-1.0.0 is already installed"
- echo ""
-
- if echo "$p" | grep -q '=0.4.2'; then
- apt-get install $p
- echo "done."
- echo ""
- fi
- else
- echo $ins
- echo $str "is already installed."
- echo ""
- fi
- fi
- fi
- done
-}
-
-#------------------------------------------------------------
-# リストを逆順にする
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# パッケージをアンインストールする
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo "Now uninstalling: " $p
- echo "rpm -e $p"
- echo "done."
- echo ""
- done
-}
-
-
-
-#---------------------------------------
-# メイン
-#---------------------------------------
-check_root
-
-
-#if test "x$1" = "x0.4.2" || test "x$1" = "x0.4" ; then
- openrtm=$openrtm04
- packages="$libuuid $omni $ace $openrtm"
- #packages="$openrtm"
-#fi
-
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $packages`
-else
- #update_source_list
- #apt-get update
- install_packages $1 $packages
-fi
\ No newline at end of file
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_debian.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_debian.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_debian.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,172 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_debian.sh
-# @brief OpenRTM-aist dependent packages install script for Debian-sarge
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-# Harumi Miyamoto
-#
-
-#---------------------------------------
-# ããã±ã¼ã¸ãªã¹ã
-#---------------------------------------
-omni="libomniorb4 libomniorb4-dev omniidl4 omniorb4-nameserver"
-ace="libace libace-dev"
-openrtm="openrtm-aist openrtm-aist-doc openrtm-aist-dev openrtm-aist-example"
-openrtm04="openrtm-aist=0.4.2-1 openrtm-aist-doc=0.4.2-1 openrtm-aist-dev=0.4.2-1 openrtm-aist-example=0.4.2-1"
-pyyaml="python-support python-yaml"
-devel="gcc g++ make uuid-dev"
-packages="$devel $omni $ace $pyyaml $openrtm"
-u_packages="$omni $ace $openrtm "
-
-
-#---------------------------------------
-# ãã±ã¼ã«ã®è¨èªç¢ºèª
-#---------------------------------------
-check_lang()
-{
-lang="en"
-
-locale | grep ja_JP > /dev/null && lang="jp"
-
-if test "$lang" = "jp" ;then
- msg1="ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã確èªãã¦ãã ããã\nDebian以å¤ã®OSã®å¯è½æ§ãããã¾ãã"
- msg2="ã³ã¼ããã¼ã ï¼ "
- msg3="ãã®OSã¯ãµãã¼ãããã¦ããã¾ããã"
- msg4=" OpenRTM-aistã®ãªãã¸ããªãç»é²ããã¦ãã¾ããã"
- msg5="Source.listã«OpenrRTM-aistã®ãªãã¸ããªï¼"
- msg6="ã追å ãã¾ããããããã§ããï¼ (y/n) [y] "
- msg7="ä¸æãã¾ãã"
- msg8="ã«ã¼ãã¦ã¼ã¶ã¼ã§å®è¡ãã¦ãã ããã"
- msg9="ã¤ã³ã¹ãã¼ã«ä¸ã§ã..."
- msg10="å®äº"
- msg11="ã¢ã³ã¤ã³ã¹ãã¼ã«ä¸ã§ã"
-else
- msg1="This distribution may not be debian/ubuntu."
- msg2="The code name is : "
- msg3="This OS is not supported."
- msg4="No repository entry for OpenRTM-aist is configured in your system."
- msg5="repository entry for OpenrRTM-aist: "
- msg6="Do you want to add the repository entry for OpenrRTM-aist in source.list? (y/n) [y] "
- msg7="Abort."
- msg8="This script should be run as root."
- msg9="Now installing: "
- msg10="done."
- msg11="Now uninstalling: "
-
-fi
-
-}
-
-#---------------------------------------
-# ãªãã¸ããªãµã¼ã
-#---------------------------------------
-create_srclist () {
- cnames="sarge etch lenny"
- for c in $cnames; do
- if test -f "/etc/apt/sources.list"; then
- res=`grep $c /etc/apt/sources.list`
- else
- echo $msg1
- exit
- fi
- if test ! "x$res" = "x" ; then
- code_name=$c
- fi
- done
- if test ! "x$code_name" = "x"; then
- echo $msg2 $code_name
- else
- echo $msg3
- exit
- fi
- openrtm_repo="deb http://www.openrtm.org/pub/Linux/debian/ $code_name main"
-}
-
-#---------------------------------------
-# ã½ã¼ã¹ãªã¹ãæ´æ°é¢æ°ã®å®ç¾©
-#---------------------------------------
-update_source_list () {
- rtmsite=`grep openrtm /etc/apt/sources.list`
- if test "x$rtmsite" = "x" ; then
- echo $msg4
- echo $msg5
- echo " " $openrtm_repo
- read -p $msg6 kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo $msg7
- exit 0
- else
- echo $openrtm_repo >> /etc/apt/sources.list
- fi
- fi
-}
-
-#----------------------------------------
-# root ãã©ããããã§ãã¯
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo $msg8
- echo $msg7
- echo ""
- exit 1
- fi
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ã¤ã³ã¹ãã¼ã«é¢æ°
-#----------------------------------------
-install_packages () {
- for p in $*; do
- echo $msg9 $pã
- apt-get install $p
- echo $msg10
- echo ""
- done
-}
-
-#------------------------------------------------------------
-# ãªã¹ããéé ã«ãã
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ãã¢ã³ã¤ã³ã¹ãã¼ã«ãã
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo $msg11 $p
- aptitude remove $p
- echo $msg10
- echo ""
- done
-}
-
-#---------------------------------------
-# ã¡ã¤ã³
-#---------------------------------------
-check_lang
-check_root
-
-if test "x$1" = "x0.4.2" || test "x$1" = "x0.4" ; then
- openrtm=$openrtm04
- packages="$devel $omni $ace $pyyaml $openrtm"
-fi
-
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $u_packages`
-else
-
- create_srclist
- update_source_list
- apt-get update
- install_packages $packages
-fi
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_fedora.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_fedora.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_fedora.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,134 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_fedora.sh
-# @brief OpenRTM-aist dependent packages install script for Fedora
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-#
-# このシェルスクリプトは、aceおよびomniORBのパッケージをインストールし、
-# fedoraの開発環境を構築します。
-#
-# $Id$
-#
-
-#---------------------------------------
-# パッケージリスト
-#---------------------------------------
-omni="omniORB omniORB-devel omniORB-doc omniORB-servers omniORB-utils omniORB-bootscripts"
-ace="ace ace-devel"
-openrtm="OpenRTM-aist OpenRTM-aist-devel OpenRTM-aist-doc OpenRTM-aist-example PyYAML"
-openrtm04="OpenRTM-aist-0.4.2 OpenRTM-aist-devel-0.4.2 OpenRTM-aist-doc-0.4.2 OpenRTM-aist-example-0.4.2 PyYAML"
-packages="gcc-c++ libuuid-devel $omni $ace $openrtm"
-
-
-#----------------------------------------
-# root かどうかをチェック
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo "This script should be run by root user."
- echo "Abort."
- echo ""
- exit 1
- fi
-}
-
-#---------------------------------------
-# インストール済パッケージリスト
-#---------------------------------------
-rpm_qa="/tmp/yum_list.txt"
-get_pkg_list () {
- rpm -qa > $rpm_qa
-}
-clean_pkg_list () {
- rm -f $rpm_qa
-}
-
-#---------------------------------------
-# リポジトリサイト設定ファイルを生成
-#---------------------------------------
-openrtm_repo () {
-cat <<EOF
-[openrtm]
-name=Fedora \$releasever - \$basearch
-failovermethod=priority
-baseurl=http://www.openrtm.org/pub/Linux/Fedora/releases/\$releasever/Fedora/\$basearch/os/Packages
-enabled=1
-gpgcheck=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
-EOF
-}
-create_repo() {
- repo="/etc/yum.repos.d/openrtm.repo"
- if test ! -f $repo ; then
- echo "OpenRTM-aist のリポジトリが登録されていません。"
- echo "OpenRTM-aist のリポジトリ: "
- echo " http://www.openrtm.org/pub/Linux/Fedora/"
- read -p "を追加します。よろしいですか? (y/n) [y] " kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo "中断します。"
- exit 0
- else
- openrtm_repo > /etc/yum.repos.d/openrtm.repo
- fi
- fi
-}
-
-#----------------------------------------
-# パッケージインストール関数
-#----------------------------------------
-install_packages () {
- for p in $*; do
- ins=`rpm -qa $p`
- if test "x$ins" = "x"; then
- echo "Now installing: " $p
- yum install $p
- echo "done."
- echo ""
- else
- echo $p "is already installed."
- echo ""
- fi
- done
-}
-
-#------------------------------------------------------------
-# リストを逆順にする
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# パッケージをアンインストールする
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo "Now uninstalling: " $p
- yum erase $p
- echo "done."
- echo ""
- done
-}
-
-#---------------------------------------
-# メイン
-#---------------------------------------
-check_root
-
-if test "x$1" = "x0.4.2" || test "x$1" = "x0.4" ; then
- openrtm=$openrtm04
- packages="$devel $omni $ace $pyyaml $openrtm"
-fi
-
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $packages`
-else
- create_repo
- install_packages $packages
-fi
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_ubuntu.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_ubuntu.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_ubuntu.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,172 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_ubuntu.sh
-# @brief OpenRTM-aist dependent packages install script for Debian-sarge
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-# Harumi Miyamoto
-#
-
-#---------------------------------------
-# ããã±ã¼ã¸ãªã¹ã
-#---------------------------------------
-omni="libomniorb4 libomniorb4-dev omniidl4 omniorb4-nameserver"
-ace="libace libace-dev"
-openrtm="openrtm-aist openrtm-aist-doc openrtm-aist-dev openrtm-aist-example python-yaml"
-openrtm04="openrtm-aist=0.4.2-1 openrtm-aist-doc=0.4.2-1 openrtm-aist-dev=0.4.2-1 openrtm-aist-example=0.4.2-1"
-devel="gcc g++ make uuid-dev"
-packages="$devel $omni $ace $openrtm"
-u_packages="$omni $ace $openrtm "
-
-#---------------------------------------
-# ãã±ã¼ã«ã®è¨èªç¢ºèª
-#---------------------------------------
-check_lang()
-{
-lang="en"
-
-locale | grep ja_JP > /dev/null && lang="jp"
-
-if test "$lang" = "jp" ;then
- msg1="ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã確èªãã¦ãã ããã\nDebianãUbuntu以å¤ã®OSã®å¯è½æ§ãããã¾ãã"
- msg2="ã³ã¼ããã¼ã :"
- msg3="ãã®OSã¯ãµãã¼ããã¦ããã¾ããã"
- msg4="OpenRTM-aist ã®ãªãã¸ããªãç»é²ããã¦ãã¾ããã"
- msg5="Source.list ã« OpenRTM-aist ã®ãªãã¸ããª: "
- msg6="ã追å ãã¾ããããããã§ããï¼(y/n)[y] "
- msg7="ä¸æãã¾ãã"
- msg8="ã«ã¼ãã¦ã¼ã¶ã¼ã§å®è¡ãã¦ãã ããã"
- msg9="ã¤ã³ã¹ãã¼ã«ä¸ã§ã..."
- msg10="å®äº"
- msg11="ã¢ã³ã¤ã³ã¹ãã¼ã«ä¸ã§ã."
-else
- msg1="This distribution may not be debian/ubuntu."
- msg2="The code name is : "
- msg3="This OS is not supported."
- msg4="No repository entry for OpenRTM-aist is configured in your system."
- msg5="repository entry for OpenrRTM-aist: "
- msg6="Do you want to add new repository entry for OpenrRTM-aist in source.list? (y/n) [y] "
- msg7="Abort."
- msg8="This script should be run as root."
- msg9="Now installing: "
- msg10="done."
- msg11="Now uninstalling: "
-fi
-
-}
-
-
-#---------------------------------------
-# ãªãã¸ããªãµã¼ã
-#---------------------------------------
-create_srclist () {
- codename=`sed -n /DISTRIB_CODENAME=/p /etc/lsb-release`
- cnames=`echo "$codename" | sed 's/DISTRIB_CODENAME=//'`
- #cnames="sarge edgy feisty gutsy hardy intrepid"
- for c in $cnames; do
- if test -f "/etc/apt/sources.list"; then
- res=`grep $c /etc/apt/sources.list`
- else
- echo $msg1
- exit
- fi
- if test ! "x$res" = "x" ; then
- code_name=$c
- fi
- done
- if test ! "x$code_name" = "x"; then
- echo $msg2 $code_name
- else
- echo $msg3
- exit
- fi
- openrtm_repo="deb http://www.openrtm.org/pub/Linux/ubuntu/ $code_name main"
-}
-
-#---------------------------------------
-# ã½ã¼ã¹ãªã¹ãæ´æ°é¢æ°ã®å®ç¾©
-#---------------------------------------
-update_source_list () {
- rtmsite=`grep openrtm /etc/apt/sources.list`
- if test "x$rtmsite" = "x" ; then
- echo $msg4
- echo $msg5
- echo " " $openrtm_repo
- read -p $msg6 kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo $msg7
- exit 0
- else
- echo $openrtm_repo >> /etc/apt/sources.list
- fi
- fi
-}
-
-#----------------------------------------
-# root ãã©ããããã§ãã¯
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo $msg8
- echo $msg7
- echo ""
- exit 1
- fi
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ã¤ã³ã¹ãã¼ã«é¢æ°
-#----------------------------------------
-install_packages () {
- for p in $*; do
- echo $msg9 $p
- apt-get install $p
- echo $msg10
- echo ""
- done
-}
-
-#------------------------------------------------------------
-# ãªã¹ããéé ã«ãã
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ãã¢ã³ã¤ã³ã¹ãã¼ã«ãã
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo $msg11 $p
- aptitude remove $p
- echo $msg10
- echo ""
- done
-}
-
-#---------------------------------------
-# ã¡ã¤ã³
-#---------------------------------------
-check_lang
-check_root
-
-if test "x$1" = "x0.4.2" || test "x$1" = "x0.4" ; then
- openrtm=$openrtm04
- packages="$devel $omni $ace $pyyaml $openrtm"
-fi
-
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $u_packages`
-else
- create_srclist
- update_source_list
- apt-get update
- install_packages $packages
-fi
-
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_vine.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_vine.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install100_vine.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,168 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_vine.sh
-# @brief OpenRTM-aist dependent packages installation script for Vine Linux
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-#
-# このシェルスクリプトは、aceおよびomniORBのパッケージをインストールし、
-# Vine Linuxの開発環境を構築します。
-#
-#---------------------------------------
-# Vineバージョン特定
-#---------------------------------------
-vinever=`cat /etc/vine-release | sed 's/.*\([0-9].[0-9]\).*/\1/'`
-
-#---------------------------------------
-# リポジトリサーバ
-#---------------------------------------
-openrtm_repo="rpm http://www.openrtm.org/pub/Linux/Vine/apt $vinever/\$(ARCH) main"
-
-#---------------------------------------
-# パッケージリスト
-#---------------------------------------
-omni="omniORB omniORB-devel omniORB-servers omniORB-doc"
-ace="ace ace-devel"
-openrtm="OpenRTM-aist OpenRTM-aist-devel OpenRTM-aist-doc OpenRTM-aist-example PyYAML"
-openrtm04="OpenRTM-aist=0.4.2 OpenRTM-aist-devel=0.4.2 OpenRTM-aist-doc=0.4.2 OpenRTM-aist-example=0.4.2 PyYAML"
-libuuid="e2fsprogs e2fsprogs-devel"
-packages="$libuuid $omni $ace $openrtm"
-#packages_check="$libuuid $omni $ace $openrtm"
-
-
-
-
-#----------------------------------------
-# root かどうかをチェック
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo "This script should be run by root user."
- echo "Abort."
- echo ""
- exit 1
- fi
-}
-
-#---------------------------------------
-# ソースリスト更新関数の定義
-#---------------------------------------
-update_source_list () {
- rtmsite=`grep openrtm /etc/apt/sources.list`
- if test "x$rtmsite" = "x" ; then
- echo "OpenRTM-aist のリポジトリが登録されていません。"
- echo "Source.list に OpenRTM-aist のリポジトリ: "
- echo " " $openrtm_repo
- read -p "を追加します。よろしいですか? (y/n) [y] " kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo "中断します。"
- exit 0
- else
- echo $openrtm_repo >> /etc/apt/sources.list
- fi
- fi
-}
-
-#----------------------------------------
-# チェック
-#----------------------------------------
-
-#----------------------------------------
-# パッケージをインストールする
-#----------------------------------------
-install_packages () {
- for p in $*; do
- if test "x$p" = "x0.4.2" || test "x$p" = "x0.4.2" ; then
- :
- else
- if echo "$p" | grep -q '=0.4.2' ; then
- str=`echo "$p" |sed 's/=0.4.2//'`
- else
- str="$p"
- fi
-
- ins=`rpm -qa $str`
-
- if test "x$ins" = "x"; then
- echo "Now installing: " $p
- apt-get install $p
- echo "done."
- echo ""
- else
- if echo "$ins" |grep -q '0.4.2-0' ; then
-
- if echo "$p" | grep -q '=0.4.2'; then
- echo $ins
- echo $str"-0.4.2 is already installed"
- echo ""
- else
- apt-get install $p
- echo "done."
- echo ""
- fi
-
- elif echo "$ins" |grep -q '1.0.0-0'; then
- echo $ins
- echo $str"-1.0.0 is already installed"
- echo ""
-
- if echo "$p" | grep -q '=0.4.2'; then
- apt-get install $p
- echo "done."
- echo ""
- fi
- else
- echo $ins
- echo $str "is already installed."
- echo ""
- fi
- fi
- fi
- done
-}
-
-#------------------------------------------------------------
-# リストを逆順にする
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# パッケージをアンインストールする
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo "Now uninstalling: " $p
- echo "rpm -e $p"
- echo "done."
- echo ""
- done
-}
-
-
-
-#---------------------------------------
-# メイン
-#---------------------------------------
-check_root
-
-
-if test "x$1" = "x0.4.2" || test "x$1" = "x0.4" ; then
- openrtm=$openrtm04
- packages="$libuuid $omni $ace $openrtm"
- #packages="$openrtm"
-fi
-
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $packages`
-else
- #update_source_list
- #apt-get update
- install_packages $1 $packages
-fi
\ No newline at end of file
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_debian.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_debian.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_debian.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,163 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_debian.sh
-# @brief OpenRTM-aist dependent packages install script for Debian-sarge
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-# Harumi Miyamoto
-#
-
-#---------------------------------------
-# ããã±ã¼ã¸ãªã¹ã
-#---------------------------------------
-omni="libomniorb4 libomniorb4-dev omniidl4 omniorb4-nameserver"
-openrtm="openrtm-aist openrtm-aist-doc openrtm-aist-dev openrtm-aist-example"
-pyyaml="python-support python-yaml"
-devel="gcc g++ make uuid-dev"
-packages="$devel $omni $pyyaml $openrtm"
-u_packages="$omni $openrtm "
-
-#---------------------------------------
-# ãã±ã¼ã«ã®è¨èªç¢ºèª
-#---------------------------------------
-check_lang()
-{
-lang="en"
-
-locale | grep ja_JP > /dev/null && lang="jp"
-
-if test "$lang" = "jp" ;then
- msg1="ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã確èªãã¦ãã ããã\nDebian以å¤ã®OSã®å¯è½æ§ãããã¾ãã"
- msg2="ã³ã¼ããã¼ã ï¼ "
- msg3="ãã®OSã¯ãµãã¼ãããã¦ããã¾ããã"
- msg4=" OpenRTM-aistã®ãªãã¸ããªãç»é²ããã¦ãã¾ããã"
- msg5="Source.listã«OpenrRTM-aistã®ãªãã¸ããªï¼"
- msg6="ã追å ãã¾ããããããã§ããï¼ (y/n) [y] "
- msg7="ä¸æãã¾ãã"
- msg8="ã«ã¼ãã¦ã¼ã¶ã¼ã§å®è¡ãã¦ãã ããã"
- msg9="ã¤ã³ã¹ãã¼ã«ä¸ã§ã..."
- msg10="å®äº"
- msg11="ã¢ã³ã¤ã³ã¹ãã¼ã«ä¸ã§ã"
-else
- msg1="This distribution may not be debian/ubuntu."
- msg2="The code name is : "
- msg3="This OS is not supported."
- msg4="No repository entry for OpenRTM-aist is configured in your system."
- msg5="repository entry for OpenrRTM-aist: "
- msg6="Do you want to add the repository entry for OpenrRTM-aist in source.list? (y/n) [y] "
- msg7="Abort."
- msg8="This script should be run as root."
- msg9="Now installing: "
- msg10="done."
- msg11="Now uninstalling: "
-
-fi
-
-}
-
-#---------------------------------------
-# ãªãã¸ããªãµã¼ã
-#---------------------------------------
-create_srclist () {
- cnames="sarge etch lenny"
- for c in $cnames; do
- if test -f "/etc/apt/sources.list"; then
- res=`grep $c /etc/apt/sources.list`
- else
- echo $msg1
- exit
- fi
- if test ! "x$res" = "x" ; then
- code_name=$c
- fi
- done
- if test ! "x$code_name" = "x"; then
- echo $msg2 $code_name
- else
- echo $msg3
- exit
- fi
- openrtm_repo="deb http://www.openrtm.org/pub/Linux/debian/ $code_name main"
-}
-
-#---------------------------------------
-# ã½ã¼ã¹ãªã¹ãæ´æ°é¢æ°ã®å®ç¾©
-#---------------------------------------
-update_source_list () {
- rtmsite=`grep openrtm /etc/apt/sources.list`
- if test "x$rtmsite" = "x" ; then
- echo $msg4
- echo $msg5
- echo " " $openrtm_repo
- read -p $msg6 kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo $msg7
- exit 0
- else
- echo $openrtm_repo >> /etc/apt/sources.list
- fi
- fi
-}
-
-#----------------------------------------
-# root ãã©ããããã§ãã¯
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo $msg8
- echo $msg7
- echo ""
- exit 1
- fi
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ã¤ã³ã¹ãã¼ã«é¢æ°
-#----------------------------------------
-install_packages () {
- for p in $*; do
- echo $msg9 $p
- apt-get install $p
- echo $msg10
- echo ""
- done
-}
-
-#------------------------------------------------------------
-# ãªã¹ããéé ã«ãã
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ãã¢ã³ã¤ã³ã¹ãã¼ã«ãã
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo $msg11 $p
- aptitude remove $p
- echo $msg10
- echo ""
- done
-}
-
-#---------------------------------------
-# ã¡ã¤ã³
-#---------------------------------------
-check_lang
-check_root
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $u_packages`
-else
- create_srclist
- update_source_list
- apt-get update
- install_packages $packages
-fi
-
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_fedora.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_fedora.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_fedora.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,145 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_fedora.sh
-# @brief OpenRTM-aist dependent packages install script for Fedora
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-#
-# このシェルスクリプトは、aceおよびomniORBのパッケージをインストールし、
-# fedoraの開発環境を構築します。
-#
-# $Id$
-#
-
-#---------------------------------------
-# パッケージリスト
-#---------------------------------------
-omni="omniORB omniORB-devel omniORB-doc omniORB-servers omniORB-utils omniORB-bootscripts"
-openrtm="OpenRTM-aist OpenRTM-aist-devel OpenRTM-aist-doc OpenRTM-aist-example PyYAML"
-packages="gcc-c++ libuuid-devel $omni $openrtm"
-
-
-#----------------------------------------
-# root かどうかをチェック
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo "This script should be run by root user."
- echo "Abort."
- echo ""
- exit 1
- fi
-}
-
-#---------------------------------------
-# インストール済パッケージリスト
-#---------------------------------------
-rpm_qa="/tmp/yum_list.txt"
-get_pkg_list () {
- rpm -qa > $rpm_qa
-}
-clean_pkg_list () {
- rm -f $rpm_qa
-}
-
-#---------------------------------------
-# リポジトリサイト設定ファイルを生成
-#---------------------------------------
-openrtm_repo () {
-cat <<EOF
-[openrtm]
-name=Fedora \$releasever - \$basearch
-failovermethod=priority
-baseurl=http://www.openrtm.org/pub/Linux/Fedora/releases/\$releasever/Fedora/\$basearch/os/Packages
-enabled=1
-gpgcheck=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
-EOF
-}
-create_repo() {
- repo="/etc/yum.repos.d/openrtm.repo"
- if test ! -f $repo ; then
- echo "OpenRTM-aist のリポジトリが登録されていません。"
- echo "OpenRTM-aist のリポジトリ: "
- echo " http://www.openrtm.org/pub/Linux/Fedora/"
- read -p "を追加します。よろしいですか? (y/n) [y] " kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo "中断します。"
- exit 0
- else
- openrtm_repo > /etc/yum.repos.d/openrtm.repo
- fi
- fi
-}
-
-#----------------------------------------
-# パッケージインストール関数
-#----------------------------------------
-install_packages () {
- for p in $*; do
- if test "x$p" = "x0.4.2" || test "x$p" = "x0.4.2" ; then
- :
- else
- if echo "$p" | grep -q '=0.4.2' ; then
- str=`echo "$p" |sed 's/=0.4.2//'`
- else
- str="$p"
- fi
-
- ins=`rpm -qa $str`
-
- if test "x$ins" = "x"; then
- echo "Now installing: " $p
- yum install $p
- echo "done."
- echo ""
- else
- if echo "$ins" |grep -q '0.4.2-0' ; then
- yum install $p
- echo "done."
- echo ""
- else
- echo $ins
- echo $str "is already installed."
- echo ""
- fi
- fi
- fi
- done
-}
-
-
-#------------------------------------------------------------
-# リストを逆順にする
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# パッケージをアンインストールする
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo "Now uninstalling: " $p
- yum erase $p
- echo "done."
- echo ""
- done
-}
-
-#---------------------------------------
-# メイン
-#---------------------------------------
-check_root
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $packages`
-else
- create_repo
- install_packages $packages
-fi
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_ubuntu.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_ubuntu.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_ubuntu.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,164 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_ubuntu.sh
-# @brief OpenRTM-aist dependent packages install script for Debian-sarge
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-# Harumi Miyamoto
-#
-
-#---------------------------------------
-# ããã±ã¼ã¸ãªã¹ã
-#---------------------------------------
-omni="libomniorb4 libomniorb4-dev omniidl4 omniorb4-nameserver"
-openrtm="openrtm-aist openrtm-aist-doc openrtm-aist-dev openrtm-aist-example python-yaml"
-devel="gcc g++ make uuid-dev"
-packages="$devel $omni $openrtm"
-u_packages="$omni $openrtm "
-
-#---------------------------------------
-# ãã±ã¼ã«ã®è¨èªç¢ºèª
-#---------------------------------------
-check_lang()
-{
-lang="en"
-
-locale | grep ja_JP > /dev/null && lang="jp"
-
-if test "$lang" = "jp" ;then
- msg1="ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã確èªãã¦ãã ããã\nDebianãUbuntu以å¤ã®OSã®å¯è½æ§ãããã¾ãã"
- msg2="ã³ã¼ããã¼ã :"
- msg3="ãã®OSã¯ãµãã¼ããã¦ããã¾ããã"
- msg4="OpenRTM-aist ã®ãªãã¸ããªãç»é²ããã¦ãã¾ããã"
- msg5="Source.list ã« OpenRTM-aist ã®ãªãã¸ããª: "
- msg6="ã追å ãã¾ããããããã§ããï¼(y/n)[y] "
- msg7="ä¸æãã¾ãã"
- msg8="ã«ã¼ãã¦ã¼ã¶ã¼ã§å®è¡ãã¦ãã ããã"
- msg9="ã¤ã³ã¹ãã¼ã«ä¸ã§ã..."
- msg10="å®äº"
- msg11="ã¢ã³ã¤ã³ã¹ãã¼ã«ä¸ã§ã."
-else
- msg1="This distribution may not be debian/ubuntu."
- msg2="The code name is : "
- msg3="This OS is not supported."
- msg4="No repository entry for OpenRTM-aist is configured in your system."
- msg5="repository entry for OpenrRTM-aist: "
- msg6="Do you want to add new repository entry for OpenrRTM-aist in source.list? (y/n) [y] "
- msg7="Abort."
- msg8="This script should be run as root."
- msg9="Now installing: "
- msg10="done."
- msg11="Now uninstalling: "
-fi
-
-}
-
-
-#---------------------------------------
-# ãªãã¸ããªãµã¼ã
-#---------------------------------------
-create_srclist () {
- codename=`sed -n /DISTRIB_CODENAME=/p /etc/lsb-release`
- cnames=`echo "$codename" | sed 's/DISTRIB_CODENAME=//'`
- #cnames="sarge edgy feisty gutsy hardy intrepid"
- for c in $cnames; do
- if test -f "/etc/apt/sources.list"; then
- res=`grep $c /etc/apt/sources.list`
- else
- echo $msg1
- exit
- fi
- if test ! "x$res" = "x" ; then
- code_name=$c
- fi
- done
- if test ! "x$code_name" = "x"; then
- echo $msg2 $code_name
- else
- echo $msg3
- exit
- fi
- openrtm_repo="deb http://www.openrtm.org/pub/Linux/ubuntu/ $code_name main"
-}
-
-#---------------------------------------
-# ã½ã¼ã¹ãªã¹ãæ´æ°é¢æ°ã®å®ç¾©
-#---------------------------------------
-update_source_list () {
- rtmsite=`grep openrtm /etc/apt/sources.list`
- if test "x$rtmsite" = "x" ; then
- echo $msg4
- echo $msg5
- echo " " $openrtm_repo
- read -p $msg6 kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo $msg7
- exit 0
- else
- echo $openrtm_repo >> /etc/apt/sources.list
- fi
- fi
-}
-
-#----------------------------------------
-# root ãã©ããããã§ãã¯
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo $msg8
- echo $msg7
- echo ""
- exit 1
- fi
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ã¤ã³ã¹ãã¼ã«é¢æ°
-#----------------------------------------
-install_packages () {
- for p in $*; do
- echo $msg9 $p
- apt-get install $p
- echo $msg10
- echo ""
- done
-}
-
-#------------------------------------------------------------
-# ãªã¹ããéé ã«ãã
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# ããã±ã¼ã¸ãã¢ã³ã¤ã³ã¹ãã¼ã«ãã
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo $msg11 $p
- aptitude remove $p
- echo $msg10
- echo ""
- done
-}
-
-#---------------------------------------
-# ã¡ã¤ã³
-#---------------------------------------
-check_lang
-check_root
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $u_packages`
-else
- create_srclist
- update_source_list
- apt-get update
- install_packages $packages
-fi
-
Deleted: trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_vine.sh
===================================================================
--- trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_vine.sh 2016-01-12 05:27:16 UTC (rev 630)
+++ trunk/OpenRTM-aist-Python/installer/install_scripts/pkg_install_vine.sh 2016-01-29 06:23:50 UTC (rev 631)
@@ -1,137 +0,0 @@
-#!/bin/sh
-#
-# @file pkg_install_vine.sh
-# @brief OpenRTM-aist dependent packages installation script for Vine Linux
-# @author Noriaki Ando <n-ando at aist.go.jp>
-# Shinji Kurihara
-# Tetsuo Ando
-#
-# このシェルスクリプトは、aceおよびomniORBのパッケージをインストールし、
-# Vine Linuxの開発環境を構築します。
-#
-#---------------------------------------
-# Vineバージョン特定
-#---------------------------------------
-vinever=`cat /etc/vine-release | sed 's/.*\([0-9].[0-9]\).*/\1/'`
-
-#---------------------------------------
-# リポジトリサーバ
-#---------------------------------------
-openrtm_repo="rpm http://www.openrtm.org/pub/Linux/Vine/apt $vinever/\$(ARCH) main"
-
-#---------------------------------------
-# パッケージリスト
-#---------------------------------------
-omni="omniORB omniORB-devel omniORB-servers omniORB-doc"
-openrtm="OpenRTM-aist OpenRTM-aist-devel OpenRTM-aist-doc OpenRTM-aist-example PyYAML"
-libuuid="e2fsprogs e2fsprogs-devel"
-packages="$libuuid $omni $openrtm"
-
-
-
-
-#----------------------------------------
-# root かどうかをチェック
-#----------------------------------------
-check_root () {
- if test ! `id -u` = 0 ; then
- echo ""
- echo "This script should be run by root user."
- echo "Abort."
- echo ""
- exit 1
- fi
-}
-
-#---------------------------------------
-# ソースリスト更新関数の定義
-#---------------------------------------
-update_source_list () {
- rtmsite=`grep openrtm /etc/apt/sources.list`
- if test "x$rtmsite" = "x" ; then
- echo "OpenRTM-aist のリポジトリが登録されていません。"
- echo "Source.list に OpenRTM-aist のリポジトリ: "
- echo " " $openrtm_repo
- read -p "を追加します。よろしいですか? (y/n) [y] " kick_shell
-
- if test "x$kick_shell" = "xn" ; then
- echo "中断します。"
- exit 0
- else
- echo $openrtm_repo >> /etc/apt/sources.list
- fi
- fi
-}
-
-#----------------------------------------
-# パッケージをインストールする
-#----------------------------------------
-install_packages () {
- for p in $*; do
- if test "x$p" = "x0.4.2" ; then
- :
- else
- if echo "$p" | grep -q '=0.4.2' ; then
- str=`echo "$p" |sed 's/=0.4.2//'`
- else
- str="$p"
- fi
-
- ins=`rpm -qa $str`
-
- if test "x$ins" = "x"; then
- echo "Now installing: " $p
- apt-get install $p
- echo "done."
- echo ""
- else
- if echo "$ins" |grep -q '0.4.2-0' ; then
- apt-get install $p
- echo "done."
- echo ""
- else
- echo $ins
- echo $str "is already installed."
- echo ""
- fi
- fi
- fi
- done
-}
-
-
-#------------------------------------------------------------
-# リストを逆順にする
-#------------------------------------------------------------
-reverse () {
- for i in $*; do
- echo $i
- done | sed '1!G;h;$!d'
-}
-
-#----------------------------------------
-# パッケージをアンインストールする
-#----------------------------------------
-uninstall_packages () {
- for p in $*; do
- echo "Now uninstalling: " $p
- rpm -e $p
- echo "done."
- echo ""
- done
-}
-
-
-
-#---------------------------------------
-# メイン
-#---------------------------------------
-check_root
-if test "x$1" = "x-u" ; then
- uninstall_packages `reverse $packages`
-else
- update_source_list
- apt-get update
- install_packages $packages
-fi
-
More information about the openrtm-commit
mailing list