[openrtm-commit:00498] r2245 - in tags/RELEASE_1_0_1/OpenRTM-aist: . packages packages/deb packages/macports packages/rpm

openrtm @ openrtm.org openrtm @ openrtm.org
2011年 12月 20日 (火) 15:25:12 JST


Author: n-ando
Date: 2011-12-20 15:25:12 +0900 (Tue, 20 Dec 2011)
New Revision: 2245

Added:
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/Makefile.am
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/Makefile.am
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/README.Debian
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/changelog
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/compat
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/control
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/copyright
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/debian_debcp.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/debian_repo.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dirs
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/docs
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dpkg_build.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dpkgbuild.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/files
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/rules
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/ubuntu_debcp.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/ubuntu_repo.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/Portfile
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/port_install.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/ports.tgz
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/ports/
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/ports/
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/Makefile.am
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/OpenRTM-aist.spec.in
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/dist_key.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/fedora_repo.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/fedora_rpmcp.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/pkgbuild.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/rpm_build.sh.in
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/vine_repo.sh
   tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/vine_rpmcp.sh
Log:
package generator has been added.

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/Makefile.am
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/Makefile.am	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/Makefile.am	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,10 @@
+## -*- Makefile -*-
+##------------------------------------------------------------
+## Makefile.am for libRTC
+##
+## $Id: Makefile.am 2068 2011-04-01 12:59:05Z n-ando $
+##------------------------------------------------------------
+
+AUTOMAKE_OPTIONS = 1.4
+
+SUBDIRS = deb rpm

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/Makefile.am
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/Makefile.am	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/Makefile.am	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,64 @@
+## -*- Makefile -*-
+##------------------------------------------------------------
+## Makefile.am for deb package
+##
+## $Id$
+##------------------------------------------------------------
+
+#
+# Debian package control files
+#
+# the following files are constant
+# - README.Debian
+# - changelog
+# - compat
+# - control
+# - copyright
+# - dirs
+# - docs
+# - rules         
+#
+# the following files shoud be generated at make-dist
+# - files
+#
+# Package build process
+#
+# 1. edit "changelog" file with appropriate package version number
+#    like "1.1.0-2." This version number will be used for actual 
+#    deb package files.
+#
+# 2. Check permissions of the parent directory of distribution sourcecode
+#    extracted directory. (ex. parent of OpenRTM-aist-1.0.0)
+#    Package build script create deb packages there.
+#
+# 3. Run package build script debpkg_build.sh
+#    This script do everithings.
+#
+
+AUTOMAKE_OPTIONS = 1.4
+
+PKGVER=`head -n 1 changelog | sed 's/.*(\([0-9\.\-]*\).*/\1/'`
+
+all-local: ${EXTRA_DIST} files
+	sh dpkg_build.sh
+
+files: changelog
+	echo "openrtm-aist_"${PKGVER}"_amd64.deb main extra" > files
+	echo "openrtm-aist-dev_"${PKGVER}"_amd64.deb main extra" >> files
+	echo "openrtm-aist-example_"${PKGVER}"_amd64.deb main extra" >> files
+	echo "openrtm-aist-doc_"${PKGVER}"_all.deb main extra" >> files
+
+clean-local:
+	rm -f *~
+	rm -f files
+
+EXTRA_DIST = \
+	README.Debian \
+	changelog     \
+	compat        \
+	control       \
+	copyright     \
+	dirs          \
+	docs          \
+	rules         \
+	dpkg_build.sh

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/README.Debian
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/README.Debian	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/README.Debian	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,28 @@
+openrtm-aist for Debian
+-----------------------
+Debian package of OpenRTM-aist
+
+OpenRTM-aist supports Debian and Ubuntu distribution.
+
+OpenRTM-aist official deb packages might be provided for the newest
+and former major releases of Debian under the following URL.  For the
+Ubuntu distribution, deb packages might be provided for desktop
+versions of officially supported Ubuntu.
+
+- Debian package repository
+http://www.openrtm.org/pub/Linux/debian/
+
+- Ubuntu package repository
+http://www.openrtm.org/pub/Linux/ubuntu/
+
+The easyest way to install OpenRTM-aist to your Debian/Ubuntu systems
+is to download installation shell script from the following URL.
+
+- Ubuntu installation script: pkg_install100_ubuntu.sh
+- Debian installation script: pkg_install100_debian.sh
+http://openrtm.org/svnroot/OpenRTM-aist/trunk/OpenRTM-aist/build/
+
+For more details about OpenRTM-aist please visit the official site.
+http://www.openrtm.org
+
+ -- Noriaki Ando <n-ando at aist.go.jp>  Mon, 23 Jun 2008 16:18:55 +0900

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/changelog
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/changelog	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/changelog	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,29 @@
+openrtm-aist (1.1.0-0) experimental; urgency=low
+
+  * 1.1.0-0 (1.1.0-RELEASE). OpenRTM-aist-1.1.0-RELEASE
+
+ -- Noriaki Ando <n-ando at aist.go.jp>  Thu, 28 May 2010 16:58:44 +0900
+
+openrtm-aist (1.0.0-2) unstable; urgency=low
+
+  * 1.0.0-2 (1.0.0-RELEASE). A bug (rtcprof not included) has been fixed.
+
+ -- Noriaki Ando <n-ando at aist.go.jp>  Thu, 28 May 2010 16:58:44 +0900
+
+openrtm-aist (1.0.0-1) unstable; urgency=low
+
+  * 1.0.0-1 (1.0.0-RELEASE).
+
+ -- Noriaki Ando <n-ando at aist.go.jp>  Thu, 28 May 2010 16:58:44 +0900
+
+openrtm-aist (1.0.0-0) unstable; urgency=low
+
+  * 1.0.0-0 (1.0.0-RC1).
+
+ -- Noriaki Ando <n-ando at aist.go.jp>  Thu, 28 May 2009 11:58:55 +0900
+
+openrtm-aist (0.4.2-0) unstable; urgency=low
+
+ * Initial release.
+
+ -- Noriaki Ando <n-ando at aist.go.jp>  Mon, 23 Jun 2008 16:18:55 +0900

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/compat
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/compat	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/compat	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1 @@
+4

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/control
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/control	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/control	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,39 @@
+Source: openrtm-aist
+Section: main
+Priority: extra
+Maintainer: Noriaki Ando <n-ando at aist.go.jp>
+Build-Depends: debhelper, libomniorb4-dev, omniidl4, omniorb4-nameserver, python, uuid-dev
+Standards-Version: 3.8.4
+Homepage: http://www.openrtm.org
+
+Package: openrtm-aist
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: OpenRTM-aist, RT-Middleware distributed by AIST
+ OpenRTM-aist is a reference implementation of RTC (Robotic Technology
+ Component) specification which is OMG standard. OpenRTM-aist includes
+ RT-Middleware runtime environment and RTC framework. The OMG standard
+ defines a component model and certain important infrastructure
+ services applicable to the domain of robotics software development.
+ OpenRTM-aist is being developed and distributed by Intelligent
+ Systems Research Institute, National Institute of Advanced Industrial
+ Science and Technology (AIST), Japan.
+ Please see http://www.openrtm.org/ for more detail.
+
+Package: openrtm-aist-dev
+Architecture: any
+Depends: openrtm-aist
+Description: OpenRTM-aist headers for development
+ The header files and libraries needed for developing programs using
+ OpenRTM-aist.
+
+Package: openrtm-aist-example
+Architecture: any
+Depends: openrtm-aist
+Description: OpenRTM-aist examples
+ Example components and sources
+
+Package: openrtm-aist-doc
+Architecture: all
+Description: Documentation for openrtm-aist
+ Developer documentation.

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/copyright
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/copyright	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/copyright	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,35 @@
+This package was debianized by Noriaki Ando <n-ando at aist.go.jp> on
+Mon, 23 Jun 2008 16:18:55 +0900.
+
+It was downloaded from http://www.openrtm.org
+
+Upstream Author(s): 
+
+    Noriaki Ando <n-ando at aist.go.jp>
+
+Copyright: 
+
+    Copyright (C) 2003-2011
+    Noriaki Ando and the OpenRTM-aist Project team
+    Intelligent Systems Research Institute,
+    National Institute of Advanced Industrial Science and Technology (AIST),
+    Tsukuba, Japan, All rights reserved.
+
+License:
+
+    The OpenRTM-aist is the dual-licensed open source software. You can
+    use, copy, distribute and/or modify this library under the terms and
+    conditions of either of the licenses below.
+    
+    1) LGPL (GNU Lesser General Public License - v 2.1)
+    See COPYING.LIB.
+    
+    2) Individual Licnese
+    You can purchase license from AIST and/or AIST's TLO to copy,
+    distribute, modify and/or sublicense the library without any
+    limitation in the terms of LGPL. The individual license should be
+    concluded with a negotiated agreement between you and AIST and/or AIST
+    TLO. To conclude individual license, contact the person responsible of
+    AIST.
+
+

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/debian_debcp.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/debian_debcp.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/debian_debcp.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,101 @@
+#!/bin/sh
+#
+# @file vine_repo
+# @brief apt-rpm repository database creation for VineLinux
+# @date $Date$
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# Copyright (C) 2008
+#     Noriaki Ando
+#     Task-intelligence Research Group,
+#     Intelligent Systems Research Institute,
+#     National Institute of
+#         Advanced Industrial Science and Technology (AIST), Japan
+#     All rights reserved.
+#
+# $Id$
+#
+
+# Base directory of repository
+basedir="/exports/pub/repository/pub/Linux/debian/dists"
+pkgdir="/usr/users/builder/PackageBuild/"
+# debian versions
+codenames="etch sarge lenny"
+# VineLinux architectures
+darchs="i386 amd64"
+
+debcode2ver () {
+    case $1 in
+	"sarge")
+	    echo "3.1"
+	    ;;
+	"etch")
+	    echo "4.0"
+	    ;;
+	"lenny")
+	    echo "5.0"
+	    ;;
+	*)
+	    echo "unknown code name"
+	    exit 1
+	    ;;
+    esac
+}
+
+debarch2arch () {
+    case $1 in
+	"i386")
+	    echo "i686"
+	    ;;
+	"amd64")
+	    echo "x86_64"
+	    ;;
+	*)
+	    echo "unknown arch"
+	    exit 1
+	    ;;
+    esac
+}
+
+
+
+for codename in $codenames; do
+    for darch in $darchs ; do
+	version=`debcode2ver $codename`
+	arch=`debarch2arch $darch`
+
+	debs="$pkgdir/Debian$version-$arch/"
+	repo="$basedir/$codename/main/binary-$darch"
+
+	# ディレクトリが存在しないならスキップ
+	if test ! -d $debs ; then
+	    echo $debs "does not exists. skiped."
+	    continue
+	fi
+
+	# ディレクトリが存在しないなら作成
+	if test ! -d $repo ; then
+	    mkdir -p $repo
+	fi
+
+	echo ""
+	echo "Copying debs to repository:"
+	echo "dir:  "$repo
+
+	for deb in $debs/* ; do
+	    debname=`basename $deb`
+	    if test -f $repo/$debname ; then
+		echo "$repo/$debname already exists"
+		read -p "Overwrite? $rpmname [Y/n]" ow
+		if test ! "$ow" = "n" ; then
+		    echo "copying $debname"
+		    cp $debs/$debname $repo
+		    echo "copy done"
+		fi
+	    else
+		cp $debs/$debname $repo
+		echo "copy done"
+	    fi
+	done
+    done
+done

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/debian_repo.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/debian_repo.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/debian_repo.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# @file debian_repo
+# @brief apt-deb repository database creation for debian
+# @date $Date$
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# Copyright (C) 2008
+#     Noriaki Ando
+#     Task-intelligence Research Group,
+#     Intelligent Systems Research Institute,
+#     National Institute of
+#         Advanced Industrial Science and Technology (AIST), Japan
+#     All rights reserved.
+#
+# $Id$
+#
+
+# Base directory of repository
+cd /exports/pub/repository/pub/Linux/debian
+
+# debian versions
+versions="etch sarge lenny"
+
+# debian architectures
+archs="binary-i386 binary-amd64"
+
+for version in $versions; do
+    for arch in $archs ; do
+	debs="dists/$version/main/$arch"
+	echo ""
+	echo "Creating apt-dev database under:"
+	echo $debs
+	apt-ftparchive packages $debs | gzip -c9 > $debs/Packages.gz
+    done
+#   dpkg-scansources $version/main/source | gzip > $version/main/source/Sources.gz
+done

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dirs
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dirs	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dirs	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/docs
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/docs	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/docs	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,3 @@
+NEWS
+README
+README.jp

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dpkg_build.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dpkg_build.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dpkg_build.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,121 @@
+#!/bin/sh 
+#
+# Debian package build script
+#
+# the following files are constant
+# - README.Debian
+# - changelog
+# - compat
+# - control
+# - copyright
+# - dirs
+# - docs
+# - rules         
+#
+# the following files shoud be generated at make-dist
+# - files
+#
+# Package build process
+#
+# 1. edit "changelog" file with appropriate package version number
+#    like "1.1.0-2." This version number will be used for actual 
+#    deb package files.
+#
+# 2. Check permissions of the parent directory of distribution sourcecode
+#    extracted directory. (ex. parent of OpenRTM-aist-1.0.0)
+#    Package build script create deb packages there.
+#
+# 3. Run package build script debpkg_build.sh
+#    This script do everithings.
+#
+
+export PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin
+export LANG=C
+export LC_ALL=C
+
+# system information
+os=`uname -s`
+release=`uname -r`-`uname -p`
+
+dist_name=""
+dist_key=""
+# Check the lsb distribution name
+if test -f /etc/lsb-release ; then
+    . /etc/lsb-release
+    if test "x$DISTRIB_DESCRIPTION" != "x" ; then
+	dist_name=$DISTRIB_DESCRIPTION-`uname -m`
+	dist_key=$DISTRIB_ID
+    fi
+fi
+# Check the Fedora version
+if test "x$dist_name" = "x" && test -f /etc/fedora-release ; then
+    dist_name=`cat /etc/fedora-release`-`uname -m`
+    dist_key=`sed -e 's/.[^0-9]*\([0-9]\).*/fc\1/' /etc/fedora-release`
+fi
+# Check the Debian version
+if test "x$dist_name" = "x" && test -f /etc/debian_version ; then
+    dist_name="Debian"`cat /etc/debian_version`-`uname -m`
+    dist_key="Debian"
+fi
+# Check the Vine version
+if test "x$dist_name" = "x" && test -f /etc/vine-release ; then
+    dist_name=`cat /etc/vine-release`-`uname -m`
+    dist_key=`sed -e 's/.*\([0-9]\)\.\([0-9]\).*/vl\1\2/' /etc/vine-release`
+fi
+# Check the TuboLinux version
+if test "x$dist_name" = "x" && test -f /etc/turbolinux-release ; then
+    dist_name=`cat /etc/tubolinux-release`-`uname -m`
+    dist_key=""
+fi
+
+if test "x$dist_name" = "x" ; then
+    dist_name=$os$release
+fi
+# Check the RedHat/Fedora version
+if test "x$dist_name" = "x" && test -f /etc/redhat-release ; then
+    dist_name=`cat /etc/redhat-release`-`uname -m`
+fi
+
+# only fedora and vine
+if test ! "x$dist_key" = "xDebian" -a ! "x$dist_key" = "xUbuntu" ; then
+    echo $dist_key
+    echo "This is not debian/ubuntu"
+    exit 0
+fi
+
+#------------------------------------------------------------
+# create "files" file
+#------------------------------------------------------------
+if test ! -f "files" ; then
+    PKGVER=`head -n 1 changelog | sed 's/.*(\([0-9\.\-]*\).*/\1/'`
+    echo "openrtm-aist_"${PKGVER}"_amd64.deb main extra" > files
+    echo "openrtm-aist-dev_"${PKGVER}"_amd64.deb main extra" >> files
+    echo "openrtm-aist-example_"${PKGVER}"_amd64.deb main extra" >> files
+    echo "openrtm-aist-doc_"${PKGVER}"_all.deb main extra" >> files
+fi
+
+#------------------------------------------------------------
+# package build process
+#------------------------------------------------------------
+packagedir=`pwd`/../../
+mkdir $packagedir/debian
+
+rm -f $packagedir/packages/openrtm-aist*
+
+cp README.Debian $packagedir/debian/
+cp changelog $packagedir/debian/
+cp compat $packagedir/debian/
+cp control $packagedir/debian/
+cp copyright $packagedir/debian/
+cp dirs $packagedir/debian/
+cp docs $packagedir/debian/
+cp files $packagedir/debian/
+chmod 444 $packagedir/debian/files
+cp rules $packagedir/debian/
+chmod 755 $packagedir/debian/rules
+
+cd $packagedir
+
+dpkg-buildpackage -W -us -uc -rfakeroot
+
+mv $packagedir/../openrtm-aist* $packagedir/packages/
\ No newline at end of file

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dpkgbuild.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dpkgbuild.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/dpkgbuild.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,77 @@
+#!/bin/sh 
+
+export PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin
+export LANG=C
+export LC_ALL=C
+
+# system information
+os=`uname -s`
+release=`uname -r`-`uname -p`
+
+dist_name=""
+dist_key=""
+# Check the lsb distribution name
+if test -f /etc/lsb-release ; then
+    . /etc/lsb-release
+    if test "x$DISTRIB_DESCRIPTION" != "x" ; then
+	dist_name=$DISTRIB_DESCRIPTION-`uname -m`
+	dist_key=$DISTRIB_ID
+    fi
+fi
+# Check the Fedora version
+if test "x$dist_name" = "x" && test -f /etc/fedora-release ; then
+    dist_name=`cat /etc/fedora-release`-`uname -m`
+    dist_key=`sed -e 's/.[^0-9]*\([0-9]\).*/fc\1/' /etc/fedora-release`
+fi
+#Check the Debian version
+if test "x$dist_name" = "x" && test -f /etc/debian_version ; then
+    dist_name="Debian"`cat /etc/debian_version`-`uname -m`
+    dist_key="Debian"
+fi
+# Check the Vine version
+if test "x$dist_name" = "x" && test -f /etc/vine-release ; then
+    dist_name=`cat /etc/vine-release`-`uname -m`
+    dist_key=`sed -e 's/.*\([0-9]\)\.\([0-9]\).*/vl\1\2/' /etc/vine-release`
+fi
+# Check the TuboLinux version
+if test "x$dist_name" = "x" && test -f /etc/turbolinux-release ; then
+    dist_name=`cat /etc/tubolinux-release`-`uname -m`
+    dist_key=""
+fi
+
+if test "x$dist_name" = "x" ; then
+    dist_name=$os$release
+fi
+# Check the RedHat/Fedora version
+if test "x$dist_name" = "x" && test -f /etc/redhat-release ; then
+    dist_name=`cat /etc/redhat-release`-`uname -m`
+fi
+
+# only fedora and vine
+if test ! "x$dist_key" = "xDebian" -a ! "x$dist_key" = "xUbuntu" ; then
+    echo $dist_key
+    echo "This is not debian/ubuntu"
+    exit 0
+fi
+
+#------------------------------------------------------------
+# package build process
+#------------------------------------------------------------
+$packagedir=../../
+mkdir $packagedir/debian
+
+cp README.Debian $packagedir/debian/
+cp changelog $packagedir/debian/
+cp compat $packagedir/debian/
+cp control $packagedir/debian/
+cp copyright $packagedir/debian/
+cp dirs $packagedir/debian/
+cp docs $packagedir/debian/
+cp files $packagedir/debian/
+chmod 444 $packagedir/debian/files
+cp rules $packagedir/debian/
+chmod 755 $packagedir/debian/rules
+
+cd $packagedir
+
+dpkg-buildpackage -W -us -uc -rfakeroot

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/files
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/files	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/files	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,4 @@
+openrtm-aist_1.1.0-0_amd64.deb main extra
+openrtm-aist-dev_1.1.0-0_amd64.deb main extra
+openrtm-aist-example_1.1.0-0_amd64.deb main extra
+openrtm-aist-doc_1.1.0-0_all.deb main extra

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/rules
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/rules	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/rules	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,168 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+config.status: configure
+	dh_testdir
+	# Add here commands to configure the package.
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+
+#Architecture 
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp:  config.status
+
+	# Add here commands to compile the arch part of the package.
+	#$(MAKE) 
+	touch $@
+
+build-indep: build-indep-stamp
+build-indep-stamp:  config.status
+
+	# Add here commands to compile the indep part of the package.
+	#$(MAKE) doc
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
+
+	# Add here commands to clean up after the build process.
+	# -$(MAKE) distclean
+	#rm -f config.sub config.guess
+
+	dh_clean 
+
+install: install-indep install-arch
+install-indep:
+	dh_testdir
+	dh_testroot
+	dh_clean -k -i 
+	dh_installdirs -i
+
+	# Add here commands to install the indep part of the package into
+	# debian/<package>-doc.
+	#INSTALLDOC#
+	# for openrtm-aist-doc package
+	(cd $(CURDIR)/docs ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist-doc install)
+
+	dh_install -i
+
+install-arch:
+	dh_testdir
+	dh_testroot
+	dh_clean -k -s 
+	dh_installdirs -s
+
+	# Add here commands to install the arch part of the package into 
+	# debian/tmp.
+	$(MAKE)
+
+	# for openrtm-aist package
+	(cd $(CURDIR)/src/lib/coil/posix ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist install-exec)
+	(cd $(CURDIR)/src/lib/rtm        ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist install-exec)
+	(cd $(CURDIR)/etc                ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist install-exec)
+	(cd $(CURDIR)/utils/rtcd         ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist install)
+	(cd $(CURDIR)/utils/rtcprof      ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist install)
+	(cd $(CURDIR)/utils/rtm-naming   ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist install)
+	(cd $(CURDIR)/utils/rtm-config   ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist install)
+	(cd $(CURDIR)/src/ext            ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist install-exec)
+
+	# for openrtm-dev package
+	#$(MAKE)
+	(cd $(CURDIR)/src/lib/rtm           ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist-dev install-data-recursive)
+	(cd $(CURDIR)/src/lib/coil          ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist-dev install-data)
+	(cd $(CURDIR)/utils/rtc-template    ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist-dev install)
+	(cd $(CURDIR)/utils/rtm-skelwrapper ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist-dev install)
+	(cd $(CURDIR)/utils/cmake           ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist-dev install)
+	(cd $(CURDIR)/src/lib/coil/utils/coil-config      ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist-dev install)
+
+	# for openrtm-aist-example package
+	#$(MAKE)
+	(mkdir $(CURDIR)/debian/openrtm-aist-example/usr/)
+	(ln -s $(CURDIR)/debian/openrtm-aist/usr/lib $(CURDIR)/debian/openrtm-aist-example/usr/)
+	(ln -s $(CURDIR)/debian/openrtm-aist/usr/lib64 $(CURDIR)/debian/openrtm-aist-example/usr/)
+	(cd $(CURDIR)/examples         ; $(MAKE) DESTDIR=$(CURDIR)/debian/openrtm-aist-example install)
+	(rm $(CURDIR)/debian/openrtm-aist-example/usr/lib)
+	(rm $(CURDIR)/debian/openrtm-aist-example/usr/lib64)
+
+	dh_install -s
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate	
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress 
+	dh_fixperms
+#	dh_perl
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+	$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch 
+

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/ubuntu_debcp.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/ubuntu_debcp.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/ubuntu_debcp.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,120 @@
+#!/bin/sh
+#
+# @file vine_repo
+# @brief apt-rpm repository database creation for VineLinux
+# @date $Date$
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# Copyright (C) 2008
+#     Noriaki Ando
+#     Task-intelligence Research Group,
+#     Intelligent Systems Research Institute,
+#     National Institute of
+#         Advanced Industrial Science and Technology (AIST), Japan
+#     All rights reserved.
+#
+# $Id$
+#
+
+# Base directory of repository
+basedir="/exports/pub/repository/pub/Linux/ubuntu/dists"
+pkgdir="/usr/users/builder/PackageBuild/"
+# debian versions
+codenames="edgy feisty gutsy hardy intrepid jaunty karmic lucid"
+codenames="lucid maverick"
+# VineLinux architectures
+darchs="i386 amd64"
+
+debcode2ver () {
+    case $1 in
+	"edgy")
+	    echo "6.10"
+	    ;;
+	"feisty")
+	    echo "7.04"
+	    ;;
+	"gutsy")
+	    echo "7.10"
+	    ;;
+	"hardy")
+	    echo "8.04"
+	    ;;
+	"intrepid")
+	    echo "8.10"
+	    ;;
+	"jaunty")
+	    echo "9.04"
+	    ;;
+	"karmic")
+	    echo "9.10"
+	    ;;
+	"lucid")
+	    echo "10.04LTS"
+	    ;;
+	"maverick")
+	    echo "10.10"
+	    ;;
+	*)
+	    echo "unknown code name"
+	    exit 1
+	    ;;
+    esac
+}
+
+debarch2arch () {
+    case $1 in
+	"i386")
+	    echo "i686"
+	    ;;
+	"amd64")
+	    echo "x86_64"
+	    ;;
+	*)
+	    echo "unknown arch"
+	    exit 1
+	    ;;
+    esac
+}
+
+
+
+for codename in $codenames; do
+    for darch in $darchs ; do
+	version=`debcode2ver $codename`
+	arch=`debarch2arch $darch`
+
+	debs="$pkgdir/Ubuntu$version-$arch/"
+	repo="$basedir/$codename/main/binary-$darch"
+
+	# ディレクトリが存在しないならスキップ
+	if test ! -d $debs ; then
+	    echo $debs "does not exists. skiped."
+	    continue
+	fi
+
+	# ディレクトリが存在しないなら作成
+	if test ! -d $repo ; then
+	    mkdir -p $repo
+	fi
+
+	echo ""
+	echo "Copying debs to repository:"
+	echo "dir:  "$repo
+
+	for deb in $debs* ; do
+	    debname=`basename $deb`
+	    if test -f $repo/$debname ; then
+		echo "$repo/$debname already exists"
+		read -p "Overwrite? $rpmname [Y/n]" ow
+		if test ! "$ow" = "n" ; then
+		    echo "copying $debname"
+		    cp $debs/$debname $repo
+		    echo "copy done"
+		fi
+	    else
+		cp $debs/$debname $repo
+		echo "copy done"
+	    fi
+	done
+    done
+done

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/ubuntu_repo.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/ubuntu_repo.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/deb/ubuntu_repo.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# @file Ubuntu_repo
+# @brief apt-deb repository database creation for Ubuntu
+# @date $Date$
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# Copyright (C) 2008
+#     Noriaki Ando
+#     Task-intelligence Research Group,
+#     Intelligent Systems Research Institute,
+#     National Institute of
+#         Advanced Industrial Science and Technology (AIST), Japan
+#     All rights reserved.
+#
+# $Id$
+#
+
+# Base directory of repository
+cd /exports/pub/repository/pub/Linux/ubuntu
+
+# Ubuntu versions
+versions="edgy feisty gutsy hardy intrepid jaunty karmic lucid maverick"
+
+# Ubuntu architectures
+archs="binary-i386 binary-amd64"
+
+for version in $versions; do
+    for arch in $archs ; do
+	debs=dists/$version/main/$arch
+	echo ""
+	echo "Creating apt-dev database under:"
+	echo $debs
+	touch package
+	dpkg-scanpackages -m $debs package | gzip > $debs/Packages.gz
+#	apt-ftparchive packages $debs | gzip -c9 > $debs/Packages.gz
+    done
+#   dpkg-scansources $version/main/source | gzip > $version/main/source/Sources.gz
+done

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/Portfile
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/Portfile	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/Portfile	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,41 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+PortSystem        1.0
+name              OpenRTM-aist
+version           1.0.0
+revision          2
+
+categories        devel
+platforms         darwin
+maintainers       Noriaki Ando
+description       OpenRTM-aist: RT-Middleware distributed by AIST
+
+long_description  OpenRTM-aist is a reference implementation of RTC \
+                  (Robotic Technology Component) specification which \
+                  is OMG standard. OpenRTM-aist includes RT-Middleware \
+                  runtime environment and RTC framework. The OMG \
+                  standard defines a component model and certain \
+                  important infrastructure services applicable to the \
+                  domain of robotics software development. \
+                  OpenRTM-aist is being developed and distributed by \
+                  Task Intelligence Research Group, Intelligent \
+                  Systems Research Institute, National Institute of \
+                  Advanced Industrial Science and Technology (AIST), \
+                  Japan.
+
+distname          OpenRTM-aist-${version}
+distfiles         OpenRTM-aist-${version}-RELEASE.tar.gz
+homepage          http://www.openrtm.org/
+master_sites      http://www.openrtm.org/pub/OpenRTM-aist/cxx/1.0.0/
+checksums         md5 dc399aa818fa57f5d24fd752a3a2257b
+
+depends_lib       port:omniORB
+patchfiles        patch-examples-Composite-Makefile.in      \
+                  patch-examples-ConfigSample-Makefile.in   \
+                  patch-examples-SeqIO-Makefile.in          \
+                  patch-examples-SimpleIO-Makefile.in       \
+                  patch-examples-SimpleService-Makefile.in  \
+                  patch-src-lib-coil-posix-coil-Routing.cpp \
+                  patch-src-lib-coil-posix-coil-UUID.cpp    \
+                  patch-src-lib-rtm-InPortConsumer.h        \
+                  patch-src-lib-rtm-idl-Makefile.in

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/port_install.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/port_install.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/port_install.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,74 @@
+#!/bin/sh
+#
+# @file port_install.sh
+# @brief MacPorts ported OpenRTM-aist installer script
+# @date $Date$
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# Copyright (C) 2010
+#     Noriaki Ando
+#     Intelligent Systems Research Institute,
+#     National Institute of
+#         Advanced Industrial Science and Technology (AIST), Japan
+#     All rights reserved.
+#
+# $Id$
+#
+port_cmd=`which port`
+wget_cmd=`which wget`
+ports_site=http://www.openrtm.org/pub/MacOSX/macports/
+ports_file=ports.tgz
+sources_entry=file://`pwd`/ports/
+sources_conf=/opt/local/etc/macports/sources.conf
+
+if test "x$port_cmd" = "x"; then
+    echo "MacPorts required, but not installed."
+    echo "Pleae install MacPorts: http://www.macports.org/"
+    exit -1
+fi
+
+installed=`port installed |grep OpenRTM-aist`
+
+if test "x$installed" != "x" ; then
+    echo "OpenRTM-aist is already installed. exiting."
+    exit 0
+fi
+
+if test "x$wget_cmd" = "x"; then
+    echo "wget command not found. Installing wget."
+    echo "# A password may be required for sudo. Input your password."
+    sudo port install wget
+fi
+
+echo $sources_entry
+echo "Getting Portfile from: " $ports_site/$ports_file
+wget $ports_site/$ports_file
+tar xvzf $ports_file
+cd ports
+portindex
+
+has_entry=`grep -e "^$sources_entry$" $sources_conf`
+
+if test "x$has_entry" = "x" ; then
+    echo "Adding local ports repository entry to sources.conf"
+    echo "# A password may be required for sudo. Input your password."
+    sudo chmod 666 $sources_conf
+    sudo echo $sources_entry >> $sources_conf
+    sudo chmod 444 $sources_conf
+fi
+
+echo "Installing OpemRTM-aist...it may take several minutes."
+echo "# A password may be required for sudo. Input your password."
+sudo port install OpenRTM-aist
+
+has_entry=`grep -e "^$sources_entry$" $sources_conf`
+if test "x$has_entry" != "x" ; then
+    echo "Cleaning local ports repository entry in sources.conf"
+    echo "# A password may be required for sudo. Input your password."
+    sudo chmod 666 $sources_conf
+    sudo grep -v $sources_entry $sources_conf > /tmp/sources.conf
+    sudo mv /tmp/sources.conf $sources_conf
+    sudo chown root:admin $sources_conf
+    sudo chmod 444 $sources_conf
+fi
+

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/ports.tgz
===================================================================
(Binary files differ)


Property changes on: tags/RELEASE_1_0_1/OpenRTM-aist/packages/macports/ports.tgz
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/Makefile.am
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/Makefile.am	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/Makefile.am	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,56 @@
+## -*- Makefile -*-
+##------------------------------------------------------------
+## Makefile.am for deb package
+##
+##
+## rpmpkg_build.sh.in   : RPM package build script template
+##                        Only __VERSION__ is undefined.
+## rpmpkg_build.sh      : RPM package build script created from 
+##                        rpmpkg_build.sh.in replacing __VERSION__.
+## OpenRTM-aist.spec.in : RPM spec file template
+##
+## OpenRTM-aist.spec    : RPM spec file created from OpenRTM-aist.spec
+##
+## $Id$
+##------------------------------------------------------------
+
+AUTOMAKE_OPTIONS = 1.4
+
+dist_key=`sh dist_key.sh`
+
+all-local: OpenRTM-aist.spec rpm_build.sh
+	sh rpm_build.sh
+
+OpenRTM-aist.spec: OpenRTM-aist.spec.in
+	echo "%define version         $(RTM_VERSION)" > $@
+	echo "%define shortversion    $(RTM_MAJOR_VERSION).$(RTM_MINOR_VERSION)" >> $@
+	echo "%define distname        $(dist_key)" >> $@
+	echo "%define rtm_includedir  $(rtm_includedir)" >> $@
+	echo "%define coil_includedir $(coil_includedir)" >> $@
+	echo "%define rtm_libdir      $(rtm_libdir)" >> $@
+	echo "%define rtm_datadir     $(rtm_datadir)" >> $@
+	cat OpenRTM-aist.spec.in >> $@
+
+rpm_build.sh: rpm_build.sh.in
+	echo "#!/bin/sh" > $@
+	echo "" >> $@
+	echo "version=$(RTM_VERSION)" >> $@
+	echo "" >> $@
+	cat rpm_build.sh.in >> $@
+
+clean-local:
+	rm -f *~
+	rm -f files
+	rm -f OpenRTM-aist.spec rpm_build.sh
+	rm -rf BUILD RPMS SOURCES SPECS SRPMS
+	rm -f OpenRTM-aist-* 
+
+EXTRA_DIST = \
+	OpenRTM-aist.spec.in      \
+	rpm_build.sh.in           \
+	dist_key.sh               \
+	fedora_repo.sh            \
+	fedora_rpmcp.sh           \
+	pkgbuild.sh               \
+	vine_repo.sh              \
+	vine_rpmcp.sh


Property changes on: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/Makefile.am
___________________________________________________________________
Added: svn:executable
   + *

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/OpenRTM-aist.spec.in
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/OpenRTM-aist.spec.in	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/OpenRTM-aist.spec.in	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,153 @@
+#------------------------------------------------------------
+#
+# @file RPM spec file for OpenRTM-aist
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# $Id$
+#
+%define pkgname OpenRTM-aist
+
+%define builddir       %{_topdir}/BUILD/%{distname}
+%define pkgver         0
+%define _unpackaged_files_terminate_build   1
+%define __os_install_post %{nil}
+
+#------------------------------------------------------------
+# Package information
+Name:    OpenRTM-aist
+Version: %{version}
+Release: %{pkgver}.%{distname}
+Summary: OpenRTM-aist: RT-Component development environment
+Group:   Development/Libraries
+License: LGPL
+URL:     http://www.openrtm.org/
+Source0: %{pkgname}-%{version}-RELEASE.tar.gz
+Vendor:  AIST
+
+#------------------------------------------------------------
+# Build environment
+Prefix:        /usr
+Buildroot:     %{_tmppath}/%{pkgname}-%{version}-%{release}-root
+Requires:      omniORB
+Requires:      omniORB-servers
+BuildRequires: omniORB-devel
+BuildRequires: python
+
+%description
+OpenRTM-aist is a reference implementation of RTC (Robotic Technology 
+Component) specification which is OMG standard. OpenRTM-aist includes
+RT-Middleware runtime environment and RTC framework. The OMG standard
+defines a component model and certain important infrastructure services
+applicable to the domain of robotics software development.
+OpenRTM-aist is being developed and distributed by 
+Task Intelligence Research Group, Intelligent Systems Research Institute, 
+National Institute of Advanced Industrial Science and Technology (AIST), Japan. 
+Please see http://www.is.aist.go.jp/rt/OpenRTM-aist/html/ for more detail. 
+
+#------------------------------------------------------------
+# devel package
+%package devel
+Summary: Header files
+Group: Development/Libraries
+%description devel
+The header files and libraries needed for developing programs using
+OpenRTM-aist.
+
+#------------------------------------------------------------
+# doc package
+%package doc
+Summary: Documentation
+Group: Development/Libraries
+%description doc
+Developer documentation.
+
+#------------------------------------------------------------
+# example package
+%package example
+Summary: Example
+Group: Development/Libraries
+%description example
+Example components and sources
+
+#------------------------------------------------------------
+# prep section
+%prep
+%{__rm} -rf %{buildroot}
+%setup -n %{pkgname}-%{version} -q
+
+#------------------------------------------------------------
+# build section
+%build
+%configure --prefix=/usr
+%{__make}
+
+#------------------------------------------------------------
+# install section
+%install
+export DONT_STRIP=1
+%{__make} DESTDIR=%{buildroot} install
+
+#------------------------------------------------------------
+# clean section
+%clean
+%{__rm} -rf %{buildroot}
+
+#------------------------------------------------------------
+# files section
+%files
+/etc/rtc.conf.sample
+%defattr(-,root,root,-)
+%attr(755,root,root) %{_bindir}/rtm-naming
+%attr(755,root,root) %{_bindir}/rtcd
+%attr(755,root,root) %{_bindir}/rtcprof
+%attr(755,root,root) %{_bindir}/rtm-config
+%{_libdir}/libRTC*
+%{_libdir}/libcoil*
+%{rtm_libdir}/ec/*
+%{rtm_libdir}/sdo/*
+
+
+#------------------------------------------------------------
+# devel package file list
+%files devel
+%defattr(-,root,root,-)
+%attr(755,root,root) %{_bindir}/rtc-template
+%attr(755,root,root) %{_bindir}/rtm-skelwrapper
+%attr(755,root,root) %{_bindir}/coil-config
+%{rtm_includedir}/*
+%{coil_includedir}/*
+%{rtm_libdir}/py_helper/*
+%{_libdir}/pkgconfig/*
+%{rtm_libdir}/cmake/*
+
+
+#------------------------------------------------------------
+# doc package file list
+%files doc
+%defattr(-,root,root,-)
+%{rtm_datadir}/doc/*
+
+
+#------------------------------------------------------------
+# example package file list
+%files example
+%defattr(-,root,root,-)
+%attr(755,root,root) %{rtm_datadir}/example/*Comp*
+%{rtm_datadir}/example/*.conf
+%{rtm_datadir}/example/*.conf.org
+%{rtm_datadir}/example/src/*
+%{rtm_datadir}/example/rtc/*
+%{rtm_datadir}/example/templates/*
+
+
+#------------------------------------------------------------
+# changelog section
+%changelog
+* Thu Jun 4 2011 Noriaki Ando <n-ando at aist.go.jp> - 1.1.0-0._distname
+- CMakefile has been added.
+
+* Thu May 7 2011 Noriaki Ando <n-ando at aist.go.jp> - 1.1.0-0._distname
+- The 1.1.0 release of OpenRTM-aist.
+
+* Thu Sep 27 2007 Noriaki Ando <n-ando at aist.go.jp> - 0.4.1-1._distname
+- The second public release version of OpenRTM-aist-0.4.1.


Property changes on: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/OpenRTM-aist.spec.in
___________________________________________________________________
Added: svn:executable
   + *

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/dist_key.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/dist_key.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/dist_key.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,47 @@
+#!/bin/sh 
+
+export PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin
+export LANG=C
+export LC_ALL=C
+
+# system information
+release=`uname -r`-`uname -p`
+
+dist_name=""
+dist_key=""
+# Check the lsb distribution name
+if test -f /etc/lsb-release ; then
+    . /etc/lsb-release
+    if test "x$DISTRIB_DESCRIPTION" != "x" ; then
+	dist_name=$DISTRIB_DESCRIPTION-`uname -m`
+    fi
+fi
+# Check the Fedora version
+if test "x$dist_name" = "x" && test -f /etc/fedora-release ; then
+    dist_name=`cat /etc/fedora-release`-`uname -m`
+    dist_key=`sed -e 's/.[^0-9]*\([0-9]\+\).*/fc\1/' /etc/fedora-release`
+    echo $dist_key
+    exit 0
+fi
+#Check the Debian version
+if test "x$dist_name" = "x" && test -f /etc/debian_version ; then
+    dist_name="Debian"`cat /etc/debian_version`-`uname -m`
+    dist_key=""
+    echo $dist_key
+    exit -1
+fi
+# Check the Vine version
+if test "x$dist_name" = "x" && test -f /etc/vine-release ; then
+    dist_name=`cat /etc/vine-release`-`uname -m`
+    dist_key=`sed -e 's/.*\([0-9]\)\.\([0-9]\).*/vl\1\2/' /etc/vine-release`
+    echo $dist_key
+    exit 0
+fi
+# Check the TuboLinux version
+if test "x$dist_name" = "x" && test -f /etc/turbolinux-release ; then
+    dist_name=`cat /etc/tubolinux-release`-`uname -m`
+    echo $dist_key
+    exit -1
+fi
+
+exit -1
\ No newline at end of file


Property changes on: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/dist_key.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/fedora_repo.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/fedora_repo.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/fedora_repo.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# @file fedora_repo
+# @brief yum repository database creation for Fedora
+# @date $Date$
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# Copyright (C) 2008
+#     Noriaki Ando
+#     Task-intelligence Research Group,
+#     Intelligent Systems Research Institute,
+#     National Institute of
+#         Advanced Industrial Science and Technology (AIST), Japan
+#     All rights reserved.
+#
+# $Id$
+#
+
+# Base directory of repository
+basedir=/exports/pub/repository/pub/Linux/Fedora/releases/
+
+# Fedora releases
+versions="4 5 6 7 8 9 10 11 12 13"
+
+# Fedora architectures
+archs="i386 x86_64"
+
+for version in $versions ; do
+    for arch in $archs ; do
+	rpmdir=$basedir/$version/Fedora/$arch/os/Packages/
+	echo ""
+	echo "Creating yum database under:"
+	echo $rpmdir
+	createrepo -v $rpmdir
+    done
+    srpmdir=$basedir/$version/Fedora/source/SRPMS/
+    echo ""
+    echo "Creating yum database under:"
+    echo $rpmdir
+    createrepo -v $srpmdir
+done
+


Property changes on: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/fedora_repo.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/fedora_rpmcp.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/fedora_rpmcp.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/fedora_rpmcp.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,80 @@
+#!/bin/sh
+#
+# @file vine_repo
+# @brief apt-rpm repository database creation for VineLinux
+# @date $Date$
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# Copyright (C) 2008
+#     Noriaki Ando
+#     Task-intelligence Research Group,
+#     Intelligent Systems Research Institute,
+#     National Institute of
+#         Advanced Industrial Science and Technology (AIST), Japan
+#     All rights reserved.
+#
+# $Id$
+#
+
+# Base directory of repository
+basedir=/exports/pub/repository/pub/Linux/Fedora/releases
+pkgdir="/usr/users/builder/PackageBuild/"
+
+# Fedora releases
+versions="4 5 6 7 8 9 10 11 12 13" 
+versions="13" 
+
+# Fedora architectures
+archs="i386 x86_64 source"
+
+
+
+for version in $versions; do
+    for arch in $archs ; do
+	if test "x$arch" = "xsource"; then
+	    rpmdir=$basedir/$version/Fedora/$arch/SRPMS
+	    sarch="src"
+	else
+#	    rpmdir=$basedir/$version/Fedora/$arch/os/Packages
+	    rpmdir=$basedir/$version/Fedora/$arch/os/Packages/OpenRTM-aist-1.0
+	    sarch=$arch
+	    if test "x$arch" = "xi386"; then
+		karch="i686"
+		sarch="i*86"
+	    else
+		karch=$sarch
+	    fi
+	fi
+	if ! test -d $rpmdir ; then
+	    mkdir -p $rpmdir
+	    echo "Directory created."
+	    echo "  "$rpmdir
+	fi
+	echo ""
+	echo "Copying rpms to repository:"
+	echo "dir:  "$rpmdir
+	name="*.fc$version.$sarch.rpm"
+	echo "name: "$name
+	rpms=`/usr/bin/find $pkgdir -name $name`
+	rpms_noarch=""
+	if test ! "x$arch" = "xsource"; then
+	    name_noarch="*.fc$version.noarch.rpm"
+	    rpms_noarch=`/usr/bin/find $pkgdir -name $name_noarch |grep $karch`
+	fi
+	rpms="$rpms $rpms_noarch"
+	for rpm in $rpms ; do
+	    rpmname=`basename $rpm`
+	    echo $rpmname
+	    if test -f $rpmdir/$rpmname ; then
+		read -p "Overwrite? $rpmname [Y/n]" ow
+		if test ! "$ow" = "n" ; then
+		    cp $rpm $rpmdir
+		    echo "copy done"
+		fi
+	    else
+		cp $rpm $rpmdir
+		echo "copy done"
+	    fi
+	done
+    done
+done


Property changes on: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/fedora_rpmcp.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/pkgbuild.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/pkgbuild.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/pkgbuild.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,497 @@
+#!/bin/sh 
+
+openrtm_spec_old () {
+cat <<EOF
+#------------------------------------------------------------
+#
+# @file RPM spec file for OpenRTM-aist
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# $Id$
+#
+%define pkgname OpenRTM-aist
+%define version        1.0.0
+%define distname       __DISTNAME__
+%define builddir       %{_topdir}/BUILD/%{distname}
+%define pkgver         1
+%define _unpackaged_files_terminate_build   1
+%define __os_install_post %{nil}
+
+#------------------------------------------------------------
+# Package information
+Name:    OpenRTM-aist
+Version: %{version}
+Release: %{pkgver}.%{distname}
+Summary: OpenRTM-aist: RT-Component development environment
+Group:   Development/Libraries
+License: LGPL
+URL:     http://www.is.aist.go.jp/rt/OpenRTM-aist/
+Source0: %{pkgname}-%{version}-RELEASE.tar.gz
+Vendor:  AIST
+
+#------------------------------------------------------------
+# Build environment
+Prefix:        /usr
+Buildroot:     %{_tmppath}/%{pkgname}-%{version}-%{release}-root
+Requires:      omniORB
+Requires:      omniORB-servers
+#Requires:      ace >= 5.4.0
+BuildRequires: omniORB-devel
+#BuildRequires: ace-devel >= 5.4.0
+BuildRequires: python
+
+%description
+OpenRTM-aist is a reference implementation of RTC (Robotic Technology 
+Component) specification which is OMG standard. OpenRTM-aist includes
+RT-Middleware runtime environment and RTC framework. The OMG standard
+defines a component model and certain important infrastructure services
+applicable to the domain of robotics software development.
+OpenRTM-aist is being developed and distributed by 
+Task Intelligence Research Group, Intelligent Systems Research Institute, 
+National Institute of Advanced Industrial Science and Technology (AIST), Japan. 
+Please see http://www.is.aist.go.jp/rt/OpenRTM-aist/html/ for more detail. 
+
+#------------------------------------------------------------
+# devel package
+%package devel
+Summary: Header files
+Group: Development/Libraries
+%description devel
+The header files and libraries needed for developing programs using
+OpenRTM-aist.
+
+#------------------------------------------------------------
+# doc package
+%package doc
+Summary: Documentation
+Group: Development/Libraries
+%description doc
+Developer documentation.
+
+#------------------------------------------------------------
+# example package
+%package example
+Summary: Example
+Group: Development/Libraries
+%description example
+Example components and sources
+
+#------------------------------------------------------------
+# prep section
+%prep
+%{__rm} -rf %{buildroot}
+%setup -n %{pkgname}-%{version} -q
+
+#------------------------------------------------------------
+# build section
+%build
+%configure --prefix=/usr
+%{__make}
+
+#------------------------------------------------------------
+# install section
+%install
+export DONT_STRIP=1
+%{__make} DESTDIR=%{buildroot} install
+
+#------------------------------------------------------------
+# clean section
+%clean
+%{__rm} -rf %{buildroot}
+
+#------------------------------------------------------------
+# files section
+%files
+/etc/rtc.conf.sample
+%defattr(-,root,root,-)
+%{_libdir}/libRTC*
+%{_libdir}/libcoil*
+
+#------------------------------------------------------------
+# devel package file list
+%files devel
+%defattr(-,root,root,-)
+%attr(755,root,root) %{_bindir}/*
+%{_includedir}/*
+%{_libdir}/OpenRTM-aist/*
+%{_libdir}/pkgconfig/*
+
+#------------------------------------------------------------
+# doc package file list
+%files doc
+%defattr(-,root,root,-)
+%{_datadir}/OpenRTM-aist/docs/*
+
+#------------------------------------------------------------
+# example package file list
+%files example
+%defattr(-,root,root,-)
+%attr(755,root,root) %{_datadir}/OpenRTM-aist/examples/*Comp*
+%{_datadir}/OpenRTM-aist/examples/*.conf
+%{_datadir}/OpenRTM-aist/examples/*.conf.org
+%{_datadir}/OpenRTM-aist/examples/src/*
+%{_datadir}/OpenRTM-aist/examples/rtcs/*
+%{_datadir}/OpenRTM-aist/examples/templates/*
+
+#------------------------------------------------------------
+# changelog section
+%changelog
+* Thu Sep 27 2007 Noriaki Ando <n-ando at aist.go.jp> - 0.4.1-1._distname
+- The second public release version of OpenRTM-aist-0.4.1.
+EOF
+} 
+openrtm_spec () {
+cat <<EOF
+#------------------------------------------------------------
+#
+# @file RPM spec file for OpenRTM-aist
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# $Id$
+#
+%define pkgname OpenRTM-aist
+%define version        1.0.0
+%define distname       __DISTNAME__
+%define builddir       %{_topdir}/BUILD/%{distname}
+%define pkgver         1
+%define _unpackaged_files_terminate_build   1
+
+#------------------------------------------------------------
+# Package information
+Name:    OpenRTM-aist
+Version: %{version}
+Release: %{pkgver}.%{distname}
+Summary: OpenRTM-aist: RT-Component development environment
+Group:   Development/Libraries
+License: LGPL
+URL:     http://www.is.aist.go.jp/rt/OpenRTM-aist/
+Source0: %{pkgname}-%{version}-RELEASE.tar.gz
+Vendor:  AIST
+
+#------------------------------------------------------------
+# Build environment
+Prefix:        /usr
+Buildroot:     %{_tmppath}/%{pkgname}-%{version}-%{release}-root
+Requires:      libomniORB4.1
+Requires:      omniORB-servers
+#Requires:      ace >= 5.4.0
+BuildRequires: libomniORB4.1-devel
+#BuildRequires: ace-devel >= 5.4.0
+BuildRequires: python
+
+%description
+OpenRTM-aist is a reference implementation of RTC (Robotic Technology 
+Component) specification which is OMG standard. OpenRTM-aist includes
+RT-Middleware runtime environment and RTC framework. The OMG standard
+defines a component model and certain important infrastructure services
+applicable to the domain of robotics software development.
+OpenRTM-aist is being developed and distributed by 
+Task Intelligence Research Group, Intelligent Systems Research Institute, 
+National Institute of Advanced Industrial Science and Technology (AIST), Japan. 
+Please see http://www.is.aist.go.jp/rt/OpenRTM-aist/html/ for more detail. 
+
+#------------------------------------------------------------
+# devel package
+%package devel
+Summary: Header files
+Group: Development/Libraries
+%description devel
+The header files and libraries needed for developing programs using
+OpenRTM-aist.
+
+#------------------------------------------------------------
+# doc package
+%package doc
+Summary: Documentation
+Group: Development/Libraries
+%description doc
+Developer documentation.
+
+#------------------------------------------------------------
+# example package
+%package example
+Summary: Example
+Group: Development/Libraries
+%description example
+Example components and sources
+
+#------------------------------------------------------------
+# prep section
+%prep
+%{__rm} -rf %{buildroot}
+%setup -n %{pkgname}-%{version} -q
+
+#------------------------------------------------------------
+# build section
+%build
+%configure --prefix=/usr
+%{__make}
+
+#------------------------------------------------------------
+# install section
+%install
+%{__make} DESTDIR=%{buildroot} install
+
+#------------------------------------------------------------
+# clean section
+%clean
+%{__rm} -rf %{buildroot}
+
+#------------------------------------------------------------
+# files section
+%files
+/etc/rtc.conf.sample
+%defattr(-,root,root,-)
+%{_libdir}/libRTC*
+%{_libdir}/libcoil*
+
+#------------------------------------------------------------
+# devel package file list
+%files devel
+%defattr(-,root,root,-)
+%attr(755,root,root) %{_bindir}/*
+%{_includedir}/*
+%{_libdir}/OpenRTM-aist/*
+%{_libdir}/pkgconfig/*
+
+#------------------------------------------------------------
+# doc package file list
+%files doc
+%defattr(-,root,root,-)
+%{_datadir}/OpenRTM-aist/docs/*
+
+#------------------------------------------------------------
+# example package file list
+%files example
+%defattr(-,root,root,-)
+%attr(755,root,root) %{_datadir}/OpenRTM-aist/examples/*Comp*
+%{_datadir}/OpenRTM-aist/examples/*.conf
+%{_datadir}/OpenRTM-aist/examples/*.conf.org
+%{_datadir}/OpenRTM-aist/examples/src/*
+%{_datadir}/OpenRTM-aist/examples/rtcs/*
+%{_datadir}/OpenRTM-aist/examples/templates/*
+
+#------------------------------------------------------------
+# changelog section
+%changelog
+* Thu Sep 27 2007 Noriaki Ando <n-ando at aist.go.jp> - 0.4.1-1._distname
+- The second public release version of OpenRTM-aist-0.4.1.
+EOF
+} 
+
+pyyaml_spec () {
+cat <<EOF
+%define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')
+
+%define distname  __DISTNAME__
+%define real_name PyYAML
+%define pkgver    1
+
+Summary: Python package implementing YAML parser and emitter
+Name: PyYAML
+Version: 3.05
+Release: %{pkgver}.%{distname}
+License: GPL
+Group: Development/Libraries
+URL: http://pyyaml.org/wiki/PyYAML
+
+Source: http://pyyaml.org/download/pyyaml/PyYAML-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch: noarch
+BuildRequires: python-devel >= 2.2
+Requires: python >= 2.2
+
+Provides: PyYAML = %{name}-%{version}
+Obsoletes: PyYAML <= %{name}-%{version}
+
+%description
+PyYAML is a YAML parser and emitter for the Python programming language. 
+
+YAML is a data serialization format designed for human readability
+and interaction with scripting languages.
+
+%prep
+%setup -n %{real_name}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+%{__rm} -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-, root, root, 0755)
+%doc LICENSE README examples/
+%{python_sitelib}/yaml/
+
+%changelog
+* Tue May 27 2008 Noriaki Ando <n-ando at aist.go.jp> 3.05-distname.0
+- Distribution named package.
+* Sun May 13 2007 Dag Wieers <dag at wieers.com> - 3.05-1
+- Initial package. (using DAR)
+EOF
+}
+
+export PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin
+export LANG=C
+export LC_ALL=C
+
+# date
+date=`date "+%y%m%d%H%M"`
+time=/usr/bin/time
+# package location and build directory
+package=/usr/users/builder/PackageBuild/src/OpenRTM-aist-1.0.0-RELEASE.tar.gz
+packagedir=OpenRTM-aist-1.0.0
+#packagedir=PyYAML-3.05
+package_date=`ls -al $package | awk '{printf("%s/%s %s\n",$6,$7,$8);}'`
+package_date=`diff -ac $package /dev/null | head -1 |awk '{print $3,$4,$5,$6,$7,$8;}'`
+package_name=`basename $package`
+buildroot=/usr/users/builder/PackageBuild
+
+logheader="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\"><html><body><pre>"
+logfooter="</pre></body></html>"
+
+# system information
+hostname=`hostname`
+os=`uname -s`
+release=`uname -r`-`uname -p`
+
+
+dist_name=""
+dist_key=""
+# Check the lsb distribution name
+if test -f /etc/lsb-release ; then
+    . /etc/lsb-release
+    if test "x$DISTRIB_DESCRIPTION" != "x" ; then
+	dist_name=$DISTRIB_DESCRIPTION-`uname -m`
+    fi
+fi
+# Check the Fedora version
+if test "x$dist_name" = "x" && test -f /etc/fedora-release ; then
+    dist_name=`cat /etc/fedora-release`-`uname -m`
+    dist_key=`sed -e 's/.[^0-9]*\([0-9]\+\).*/fc\1/' /etc/fedora-release`
+fi
+#Check the Debian version
+if test "x$dist_name" = "x" && test -f /etc/debian_version ; then
+    dist_name="Debian"`cat /etc/debian_version`-`uname -m`
+    dist_key=""
+fi
+# Check the Vine version
+if test "x$dist_name" = "x" && test -f /etc/vine-release ; then
+    dist_name=`cat /etc/vine-release`-`uname -m`
+    dist_key=`sed -e 's/.*\([0-9]\)\.\([0-9]\).*/vl\1\2/' /etc/vine-release`
+fi
+# Check the TuboLinux version
+if test "x$dist_name" = "x" && test -f /etc/turbolinux-release ; then
+    dist_name=`cat /etc/tubolinux-release`-`uname -m`
+    dist_key=""
+fi
+
+if test "x$dist_name" = "x" ; then
+    dist_name=$os$release
+fi
+# Check the RedHat/Fedora version
+if test "x$dist_name" = "x" && test -f /etc/redhat-release ; then
+    dist_name=`cat /etc/redhat-release`-`uname -m`
+fi
+
+# only fedora and vine
+if test "x$dist_key" = "x" ; then
+    exit 0
+fi
+
+distname=`echo $dist_name | sed 's/[ |\(|\)]//g'`
+# system dependent build directory and log file name
+builddir=$buildroot/$distname
+timestamp=$buildroot/.$distname
+logfile=$distname-$date.log
+
+
+echo $dist_key
+
+build=""
+echo $dist_key
+# check package
+if test -f $package ; then
+    echo "Package found: " $package
+else
+    echo "Package not found: " $pacakge
+    exit 1
+fi
+cd $buildroot
+
+# check if package is new
+if test -f $timestamp ; then
+    if test $package -nt $timestamp ; then
+	build=yes
+	echo "New source file was found."
+        touch $timestamp
+    fi
+else
+    echo "Timestamp not found."
+    touch $timestamp
+    build=yes
+fi
+
+if test "x$build" = "x" ; then
+    echo "No new package."
+    exit 1
+fi
+
+# cleanup 
+echo "cleanup " $builddir/$packagedir
+rm -rf $builddir
+
+mkdir -p $builddir
+cd $builddir
+
+echo "distribution: " $dist_name >> $buildroot/$logfile
+echo "package: $package_date " >> $buildroot/$logfile
+
+
+#------------------------------------------------------------
+# package build process
+#------------------------------------------------------------
+echo $logheader > $buildroot/make-$logfile
+
+mkdir {BUILD,RPMS,SOURCES,SPECS,SRPMS}
+mkdir RPMS/{i386,i586,i686,x86_64,noarch}
+ln -s $package SOURCES/
+cd SPECS
+echo "-----------------------------"
+echo $dist_key
+
+
+if test "x$dist_key" = "xfc10" || test "x$dist_key" = "xfc11" \
+|| test "x$dist_key" = "xvl40" || test "x$dist_key" = "xvl42" ; then
+    openrtm_spec_old > OpenRTM-aist.spec.tmp
+    echo $dist_key
+else
+    openrtm_spec > OpenRTM-aist.spec.tmp
+    echo $dist_key
+fi
+
+#openrtm_spec > python-yaml.spec.tmp
+sed "s/__DISTNAME__/$dist_key/g" OpenRTM-aist.spec.tmp > OpenRTM-aist.spec
+#sed "s/__DISTNAME__/$dist_key/g" python-yaml.spec.tmp > python-yaml.spec
+echo "%_topdir $builddir" > .rpmrc
+
+rpm_def="_topdir $builddir"
+if $time -p -o make_time-$logfile rpmbuild --define "$rpm_def" -ba OpenRTM-aist.spec >> $buildroot/make-$logfile 2>&1 ; then
+#if $time -p -o make_time-$logfile rpmbuild --define "$rpm_def" -ba python-yaml.spec >> $buildroot/make-$logfile 2>&1 ; then
+    echo $logfooter >> $buildroot/make-$logfile
+    make_time=`awk '/real/{printf("%s[s] ", $0);}' make_time-$logfile`
+    echo "make: OK" >> $buildroot/$logfile
+    echo "make_time: $make_time" >> $buildroot/$logfile
+    rm -f make_time-$logfile
+else
+    echo "make: NG" >> $buildroot/$logfile
+    rm -f make_time-$logfile
+    exit 1
+fi
+


Property changes on: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/pkgbuild.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/rpm_build.sh.in
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/rpm_build.sh.in	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/rpm_build.sh.in	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,97 @@
+export PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin
+export LANG=C
+export LC_ALL=C
+
+packagename=OpenRTM-aist-$version
+tarballname=$packagename-RELEASE.tar.gz
+
+# system information
+hostname=`hostname`
+os=`uname -s`
+release=`uname -r`-`uname -p`
+
+dist_name=""
+dist_key=""
+# Check the lsb distribution name
+if test -f /etc/lsb-release ; then
+    . /etc/lsb-release
+    if test "x$DISTRIB_DESCRIPTION" != "x" ; then
+	dist_name=$DISTRIB_DESCRIPTION-`uname -m`
+    fi
+fi
+# Check the Fedora version
+if test "x$dist_name" = "x" && test -f /etc/fedora-release ; then
+    dist_name=`cat /etc/fedora-release`-`uname -m`
+    dist_key=`sed -e 's/.[^0-9]*\([0-9]\+\).*/fc\1/' /etc/fedora-release`
+fi
+#Check the Debian version
+if test "x$dist_name" = "x" && test -f /etc/debian_version ; then
+    dist_name="Debian"`cat /etc/debian_version`-`uname -m`
+    dist_key=""
+fi
+# Check the Vine version
+if test "x$dist_name" = "x" && test -f /etc/vine-release ; then
+    dist_name=`cat /etc/vine-release`-`uname -m`
+    dist_key=`sed -e 's/.*\([0-9]\)\.\([0-9]\).*/vl\1\2/' /etc/vine-release`
+fi
+# Check the TuboLinux version
+if test "x$dist_name" = "x" && test -f /etc/turbolinux-release ; then
+    dist_name=`cat /etc/tubolinux-release`-`uname -m`
+    dist_key=""
+fi
+
+if test "x$dist_name" = "x" ; then
+    dist_name=$os$release
+fi
+# Check the RedHat/Fedora version
+if test "x$dist_name" = "x" && test -f /etc/redhat-release ; then
+    dist_name=`cat /etc/redhat-release`-`uname -m`
+fi
+
+# only fedora and vine
+if test "x$dist_key" = "x" ; then
+    echo "This is not Feodra/Vine/Scientific/RedHat distribution"
+    exit 0
+fi
+
+distname=`echo $dist_name | sed 's/[ |\(|\)]//g'`
+# system dependent build directory and log file name
+
+echo "distribution: " $dist_name
+
+#------------------------------------------------------------
+# package build process
+#------------------------------------------------------------
+mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS}
+mkdir -p RPMS/{i386,i586,i686,x86_64,noarch}
+
+# fake tar-ball is created under SOURCES dir
+rm -f $packagename
+ln -s ../../../ $packagename
+tar cvzf $tarballname $packagename
+cp $tarballname SOURCES
+
+#------------------------------------------------------------
+# Selecting and adding dist key to the spec file
+#
+# Fedora12/13's omniORB package names are odd.
+#------------------------------------------------------------
+if test "x$dist_key" = "xfc12" || test "x$dist_key" = "xfc13" || test "x$dist_key" = "xvl50" ; then
+    sed -e 's/Requires:      omniORB$/Requires:      libomniORB4.1/g' OpenRTM-aist.spec > tmp.spec
+    sed -e 's/BuildRequires: omniORB-devel$/BuildRequires: libomniORB4.1-devel/' tmp.spec > SPECS/OpenRTM-aist.spec
+    rm tmp.spec
+else
+    cp OpenRTM-aist.spec SPECS/OpenRTM-aist.spec
+fi
+
+#------------------------------------------------------------
+# Copying spec file to SPEC and goto SPEC dir to build rpm
+#------------------------------------------------------------
+builddir=`pwd`
+cd SPECS
+echo "%_topdir $builddir" > .rpmrc
+
+# We have already extracted source under BUILD directory.
+# %prep process can be skiped. = --short-circuit -bc
+rpm_def="_topdir $builddir"
+rpmbuild --define "$rpm_def" -ba OpenRTM-aist.spec


Property changes on: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/rpm_build.sh.in
___________________________________________________________________
Added: svn:executable
   + *

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/vine_repo.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/vine_repo.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/vine_repo.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# @file vine_repo
+# @brief apt-rpm repository database creation for VineLinux
+# @date $Date$
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# Copyright (C) 2008
+#     Noriaki Ando
+#     Task-intelligence Research Group,
+#     Intelligent Systems Research Institute,
+#     National Institute of
+#         Advanced Industrial Science and Technology (AIST), Japan
+#     All rights reserved.
+#
+# $Id$
+#
+
+# Base directory of repository
+basedir="/exports/pub/repository/pub/Linux/Vine/apt"
+
+# VineLinux versions
+versions="3.2 4.0 4.2 5.0"
+
+# VineLinux architectures
+archs="x86_64 i386 SRPMS"
+
+for version in $versions; do
+    for arch in $archs ; do
+	rpmdir=$basedir/$version/$arch
+
+	echo ""
+	echo "Creating apt-rpm database under:"
+	echo $rpmdir
+	genbasedir --progress $rpmdir main
+    done
+done


Property changes on: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/vine_repo.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/vine_rpmcp.sh
===================================================================
--- tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/vine_rpmcp.sh	                        (rev 0)
+++ tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/vine_rpmcp.sh	2011-12-20 06:25:12 UTC (rev 2245)
@@ -0,0 +1,61 @@
+#!/bin/sh
+#
+# @file vine_repo
+# @brief apt-rpm repository database creation for VineLinux
+# @date $Date$
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# Copyright (C) 2008
+#     Noriaki Ando
+#     Task-intelligence Research Group,
+#     Intelligent Systems Research Institute,
+#     National Institute of
+#         Advanced Industrial Science and Technology (AIST), Japan
+#     All rights reserved.
+#
+# $Id$
+#
+
+# Base directory of repository
+basedir="/exports/pub/repository/pub/Linux/Vine/apt"
+pkgdir="/usr/users/builder/PackageBuild/"
+# VineLinux versions
+versions="3.1 4.2 5.0"
+
+# VineLinux architectures
+archs="i386 SRPMS"
+
+for version in $versions; do
+    for arch in $archs ; do
+	sver=`echo $version | sed 's/\.//g'`
+	if test "x$arch" = "xSRPMS"; then
+	    rpmdir=$basedir/$version/$arch/SRPMS.main
+	    sarch="src"
+	else
+	    rpmdir=$basedir/$version/$arch/RPMS.main
+	    sarch=$arch
+	fi
+
+	echo ""
+	echo "Copying rpms to repository:"
+	echo "dir:  "$rpmdir
+	name="*.vl$sver.$sarch.rpm"
+	name_noarch="*.vl$sver.noarch.rpm"
+	rpms=`/usr/bin/find $pkgdir -name $name`
+	rpms_noarch=`/usr/bin/find $pkgdir -name $name_noarch | grep i686`
+	rpms="${rpms} ${rpms_noarch}"
+	for rpm in $rpms ; do
+	    rpmname=`basename $rpm`
+	    if test -f $rpmdir/$rpmname ; then
+		read -p "Overwrite? $rpmname [Y/n]" ow
+		if test ! "$ow" = "n" ; then
+		    cp $rpm $rpmdir
+		    echo "copy done"
+		fi
+	    else
+		cp $rpm $rpmdir
+		echo "copy done"
+	    fi
+	done
+    done
+done


Property changes on: tags/RELEASE_1_0_1/OpenRTM-aist/packages/rpm/vine_rpmcp.sh
___________________________________________________________________
Added: svn:executable
   + *



openrtm-commit メーリングリストの案内