[openrtm-commit:01082] r2387 - trunk/OpenRTM-aist/build

openrtm @ openrtm.org openrtm @ openrtm.org
2013年 5月 9日 (木) 09:35:56 JST


Author: kawauchi
Date: 2013-05-09 09:35:56 +0900 (Thu, 09 May 2013)
New Revision: 2387

Removed:
   trunk/OpenRTM-aist/build/pkg_install100_debian.sh
   trunk/OpenRTM-aist/build/pkg_install100_fedora.sh
   trunk/OpenRTM-aist/build/pkg_install100_ubuntu.sh
Log:
C++?\231?\148?\168?\228?\184?\128?\230?\139?\172?\227?\130?\164?\227?\131?\179?\227?\130?\185?\227?\131?\136?\227?\131?\188?\227?\131?\171?\227?\130?\185?\227?\130?\175?\227?\131?\170?\227?\131?\151?\227?\131?\136?\230?\149?\180?\229?\130?\153?\227?\129?\171?\228?\188?\180?\227?\129?\132?\227?\128?\129?\229?\143?\164?\227?\129?\132?\227?\131?\149?\227?\130?\161?\227?\130?\164?\227?\131?\171?\227?\130?\146?\229?\137?\138?\233?\153?\164

Deleted: trunk/OpenRTM-aist/build/pkg_install100_debian.sh
===================================================================
--- trunk/OpenRTM-aist/build/pkg_install100_debian.sh	2013-05-08 04:42:45 UTC (rev 2386)
+++ trunk/OpenRTM-aist/build/pkg_install100_debian.sh	2013-05-09 00:35:56 UTC (rev 2387)
@@ -1,205 +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 $pyyaml $openrtm"
-u_packages="$omni $ace $openrtm "
-
-reposervers="www.openrtm.org www.openrtm.de"
-reposerver=""
-
-#---------------------------------------
-# ロケールの言語確認
-#---------------------------------------
-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
-
-}
-
-
-#----------------------------------------
-# 近いリポジトリサーバを探す
-#----------------------------------------
-check_reposerver()
-{
-    minrtt=65535
-    nearhost=''
-    for host in $reposervers; do
-	rtt=`ping -c 1 $host | grep 'time=' | sed -e 's/^.*time=\([0-9\.]*\) ms.*/\1/' 2> /dev/null`
-	if test "x$rtt" = "x"; then
-	    rtt=65535
-	fi
-	if test `echo "scale=2 ; $rtt < $minrtt" | bc` -gt 0; then
-	    minrtt=$rtt
-	    nearhost=$host
-	fi
-    done
-    if test "x$nearhost" = "x"; then
-	echo "Repository servers unreachable.", $hosts
-	exit 1
-    fi
-    reposerver=$nearhost
-}
-
-
-#---------------------------------------
-# リポジトリサーバ
-#---------------------------------------
-create_srclist () {
-    cnames="sarge etch lenny squeeze"
-    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://$reposerver/pub/Linux/debian/ $code_name main"
-}
-
-#---------------------------------------
-# ソースリスト更新関数の定義
-#---------------------------------------
-update_source_list () {
-    rtmsite=`grep $reposerver /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
-        apt-get remove $p
-        if test "$?" != 0; then
-            apt-get purge $p
-        fi
-        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
-    check_reposerver
-    create_srclist
-    update_source_list
-    apt-get autoclean
-    apt-get update
-    uninstall_packages `reverse $openrtm`
-    install_packages $packages
-fi

Deleted: trunk/OpenRTM-aist/build/pkg_install100_fedora.sh
===================================================================
--- trunk/OpenRTM-aist/build/pkg_install100_fedora.sh	2013-05-08 04:42:45 UTC (rev 2386)
+++ trunk/OpenRTM-aist/build/pkg_install100_fedora.sh	2013-05-09 00:35:56 UTC (rev 2387)
@@ -1,163 +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++ uuid-devel libuuid-devel $omni $openrtm"
-
-reposervers="www.openrtm.org www.openrtm.de"
-reposerver=""
-
-#----------------------------------------
-# 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
-}
-
-#----------------------------------------
-# 近いリポジトリサーバを探す
-#----------------------------------------
-check_reposerver()
-{
-    minrtt=65535
-    nearhost=''
-    for host in $reposervers; do
-	rtt=`ping -c 1 $host | grep 'time=' | sed -e 's/^.*time=\([0-9\.]*\) ms.*/\1/' 2> /dev/null`
-	if test "x$rtt" = "x"; then
-	    rtt=65535
-	fi
-	if test `echo "scale=2 ; $rtt < $minrtt" | bc` -gt 0; then
-	    minrtt=$rtt
-	    nearhost=$host
-	fi
-    done
-    if test "x$nearhost" = "x"; then
-	echo "Repository servers unreachable.", $hosts
-	exit 1
-    fi
-    reposerver=$nearhost
-}
-
-
-#---------------------------------------
-# リポジトリサイト設定ファイルを生成
-#---------------------------------------
-openrtm_repo () {
-cat <<EOF
-[openrtm]
-name=Fedora \$releasever - \$basearch
-failovermethod=priority
-baseurl=http://$reposerver/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 $openrtm"
-fi
-
-if test "x$1" = "x-u" ; then
-    uninstall_packages `reverse $packages`
-else
-    check_reposerver
-    create_repo
-    install_packages $packages
-fi

Deleted: trunk/OpenRTM-aist/build/pkg_install100_ubuntu.sh
===================================================================
--- trunk/OpenRTM-aist/build/pkg_install100_ubuntu.sh	2013-05-08 04:42:45 UTC (rev 2386)
+++ trunk/OpenRTM-aist/build/pkg_install100_ubuntu.sh	2013-05-09 00:35:56 UTC (rev 2387)
@@ -1,205 +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 omniidl omniorb-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 python-yaml" 
-devel="gcc g++ make uuid-dev libboost-filesystem-dev"
-packages="$devel $omni $openrtm"
-u_packages="$omni $ace $openrtm "
-
-reposervers="www.openrtm.org www.openrtm.de"
-reposerver=""
-
-#---------------------------------------
-# ロケールの言語確認
-#---------------------------------------
-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
-
-}
-
-#----------------------------------------
-# 近いリポジトリサーバを探す
-#----------------------------------------
-check_reposerver()
-{
-    minrtt=65535
-    nearhost=''
-    for host in $reposervers; do
-	rtt=`ping -c 1 $host | grep 'time=' | sed -e 's/^.*time=\([0-9\.]*\) ms.*/\1/' 2> /dev/null`
-	if test "x$rtt" = "x"; then
-	    rtt=65535
-	fi
-	if test `echo "scale=2 ; $rtt < $minrtt" | bc` -gt 0; then
-	    minrtt=$rtt
-	    nearhost=$host
-	fi
-    done
-    if test "x$nearhost" = "x"; then
-	echo "Repository servers unreachable.", $hosts
-	exit 1
-    fi
-    reposerver=$nearhost
-}
-
-
-#---------------------------------------
-# リポジトリサーバ
-#---------------------------------------
-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://$reposerver/pub/Linux/ubuntu/ $code_name main"
-}
-
-#---------------------------------------
-# ソースリスト更新関数の定義
-#---------------------------------------
-update_source_list () {
-    rtmsite=`grep '^$openrtm_repo' /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
-	apt-get remove $p
-    if test "$?" != 0; then
-        apt-get purge $p
-    fi
-    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 $openrtm"
-fi
-
-if test "x$1" = "x-u" ; then
-    uninstall_packages `reverse $u_packages`
-else
-    check_reposerver
-    create_srclist
-    update_source_list
-    apt-get autoclean
-    apt-get update
-    uninstall_packages `reverse $openrtm`
-    install_packages $packages
-fi
-



More information about the openrtm-commit mailing list