[openrtm-commit:01537] r531 - in trunk/rtmtools: . packages packages/deb packages/deb/debian packages/rpm
openrtm @ openrtm.org
openrtm @ openrtm.org
2015年 6月 8日 (月) 11:55:19 JST
Author: n-ando
Date: 2015-06-08 11:55:19 +0900 (Mon, 08 Jun 2015)
New Revision: 531
Added:
trunk/rtmtools/logger.properties
trunk/rtmtools/packages/
trunk/rtmtools/packages/deb/
trunk/rtmtools/packages/deb/Makefile.am
trunk/rtmtools/packages/deb/debian/
trunk/rtmtools/packages/deb/debian/README.Debian
trunk/rtmtools/packages/deb/debian/changelog
trunk/rtmtools/packages/deb/debian/changelog.ppa
trunk/rtmtools/packages/deb/debian/compat
trunk/rtmtools/packages/deb/debian/control
trunk/rtmtools/packages/deb/debian/copyright
trunk/rtmtools/packages/deb/debian/dirs
trunk/rtmtools/packages/deb/debian/docs
trunk/rtmtools/packages/deb/debian/rules
trunk/rtmtools/packages/deb/dpkg_build.sh
trunk/rtmtools/packages/deb/ppa_tool.sh
trunk/rtmtools/packages/rpm/
trunk/rtmtools/packages/rpm/Makefile.am
trunk/rtmtools/packages/rpm/OpenRTM-aist.spec.in
trunk/rtmtools/packages/rpm/dist_key.sh
trunk/rtmtools/packages/rpm/fedora_repo.sh
trunk/rtmtools/packages/rpm/fedora_rpmcp.sh
trunk/rtmtools/packages/rpm/pkgbuild.sh
trunk/rtmtools/packages/rpm/rpm_build.sh.in
trunk/rtmtools/packages/rpm/vine_repo.sh
trunk/rtmtools/packages/rpm/vine_rpmcp.sh
Removed:
trunk/rtmtools/rtmtools/
Modified:
trunk/rtmtools/openrtp
Log:
[compat,installer,->RELENG_1_1] debian package scripts and control files have been added.
Added: trunk/rtmtools/logger.properties
===================================================================
--- trunk/rtmtools/logger.properties (rev 0)
+++ trunk/rtmtools/logger.properties 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,2 @@
+jp.go.aist.rtm.rtcbuilder.RTCBLogHandler.pattern=%t/.rtcb%u.log
+jp.go.aist.rtm.systemeditor.RTSELogHandler.pattern=%t/.rtse%u.log
Property changes on: trunk/rtmtools/logger.properties
___________________________________________________________________
Added: svn:executable
+ *
Modified: trunk/rtmtools/openrtp
===================================================================
--- trunk/rtmtools/openrtp 2015-06-06 08:02:09 UTC (rev 530)
+++ trunk/rtmtools/openrtp 2015-06-08 02:55:19 UTC (rev 531)
@@ -320,6 +320,5 @@
find_OPENRTP_DIR
-cd $OPENRTP_DIR
export GDK_NATIVE_WINDOWS=1
-./eclipse $ECLIPSE_ARGS
+$OPENRTP_EXECUTABLE $ECLIPSE_ARGS -vmargs -Djava.util.logging.config.file=$OPENRTP_DIR/logger.properties
Added: trunk/rtmtools/packages/deb/Makefile.am
===================================================================
--- trunk/rtmtools/packages/deb/Makefile.am (rev 0)
+++ trunk/rtmtools/packages/deb/Makefile.am 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,49 @@
+## -*- 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}
+ sh dpkg_build.sh
+
+clean-local:
+ rm -f *~
+
+EXTRA_DIST = dpkg_build.sh
+DIST_SUBDIRS = debian
Added: trunk/rtmtools/packages/deb/debian/README.Debian
===================================================================
--- trunk/rtmtools/packages/deb/debian/README.Debian (rev 0)
+++ trunk/rtmtools/packages/deb/debian/README.Debian 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,28 @@
+openrtp for Debian
+-----------------------
+Debian package of OpenRTP
+
+OpenRTP supports Debian and Ubuntu distribution.
+
+OpenRTP 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 OpenRTP 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> Sun, 7 Jun 2015 10:35:55 +0900
Property changes on: trunk/rtmtools/packages/deb/debian/README.Debian
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/deb/debian/changelog
===================================================================
--- trunk/rtmtools/packages/deb/debian/changelog (rev 0)
+++ trunk/rtmtools/packages/deb/debian/changelog 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,6 @@
+openrtp (1.1.0-0) experimental; urgency=low
+
+ * 1.1.0-0 (1.1.0-RELEASE). OpenRTP-1.1.1-RELEASE
+
+ -- Noriaki Ando <n-ando at aist.go.jp> Sun, 7 Jun 2015 10:21:33 +0900
+
Property changes on: trunk/rtmtools/packages/deb/debian/changelog
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/deb/debian/changelog.ppa
===================================================================
--- trunk/rtmtools/packages/deb/debian/changelog.ppa (rev 0)
+++ trunk/rtmtools/packages/deb/debian/changelog.ppa 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,6 @@
+openrtp (1.1.0-0~ppa7precise) precise; urgency=low
+
+ * 1.1.0-0 (1.0.2-RELEASE) initial release for ppa.
+
+ -- OpenRTM-aist <openrtm at openrtm.org> Sun, 7 Jun 2015 10:21:33 +0900
+
Property changes on: trunk/rtmtools/packages/deb/debian/changelog.ppa
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/deb/debian/compat
===================================================================
--- trunk/rtmtools/packages/deb/debian/compat (rev 0)
+++ trunk/rtmtools/packages/deb/debian/compat 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1 @@
+9
Added: trunk/rtmtools/packages/deb/debian/control
===================================================================
--- trunk/rtmtools/packages/deb/debian/control (rev 0)
+++ trunk/rtmtools/packages/deb/debian/control 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,19 @@
+Source: openrtp
+Section: science
+Priority: extra
+Maintainer: Noriaki Ando <n-ando at aist.go.jp>
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.8.4
+Homepage: http://www.openrtm.org
+
+Package: openrtp
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, default-jre, openrtm-aist-dev
+Description: OpenRTP, Open RT Platform distributed by AIST
+ OpenRTP is tool package for OpenRTM-aist and its interoperable
+ RT-Middleware implementations. OpenRTP 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.
Property changes on: trunk/rtmtools/packages/deb/debian/control
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/deb/debian/copyright
===================================================================
--- trunk/rtmtools/packages/deb/debian/copyright (rev 0)
+++ trunk/rtmtools/packages/deb/debian/copyright 2015-06-08 02:55:19 UTC (rev 531)
@@ -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-2015
+ 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 OpenRTP 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) EPL (Eclipse Public License - v 1.0)
+ See https://www.eclipse.org/legal/epl-v10.html
+
+ 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.
+
+
Property changes on: trunk/rtmtools/packages/deb/debian/copyright
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/deb/debian/dirs
===================================================================
--- trunk/rtmtools/packages/deb/debian/dirs (rev 0)
+++ trunk/rtmtools/packages/deb/debian/dirs 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
Added: trunk/rtmtools/packages/deb/debian/docs
===================================================================
--- trunk/rtmtools/packages/deb/debian/docs (rev 0)
+++ trunk/rtmtools/packages/deb/debian/docs 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1 @@
+README
Property changes on: trunk/rtmtools/packages/deb/debian/docs
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/deb/debian/rules
===================================================================
--- trunk/rtmtools/packages/deb/debian/rules (rev 0)
+++ trunk/rtmtools/packages/deb/debian/rules 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,123 @@
+#!/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)
+
+# Multiarch support
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+#config.status: configure
+# dh_testdir
+
+#Architecture
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+
+#build-arch-stamp: config.status
+build-arch-stamp:
+
+ # Add here commands to compile the arch part of the package.
+ #$(MAKE)
+ touch $@
+
+build-indep: build-indep-stamp
+#build-indep-stamp: config.status
+build-indep-stamp:
+
+ # 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
+ # do nothing
+ dh_install -i
+
+install-arch:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -s
+ dh_installdirs -s
+
+ # for openrtp package
+ (cd $(CURDIR) ; mkdir -p $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-1.1/openrtp)
+ (cd $(CURDIR) ; cp -R [a-c]* $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-1.1/openrtp)
+ (cd $(CURDIR) ; cp -R [e-z]* $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-1.1/openrtp)
+ (cd $(CURDIR) ; cp -R dropins $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-1.1/openrtp)
+ (cd $(CURDIR) ; rm -rf $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-1.1/openrtp/packages)
+ (cd $(CURDIR) ; cp openrtp $(CURDIR)/debian/openrtp/usr/bin/ ; chmod 755 $(CURDIR)/debian/openrtp/usr/bin/openrtp)
+
+ 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_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ 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
+
Property changes on: trunk/rtmtools/packages/deb/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/deb/dpkg_build.sh
===================================================================
--- trunk/rtmtools/packages/deb/dpkg_build.sh (rev 0)
+++ trunk/rtmtools/packages/deb/dpkg_build.sh 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,164 @@
+#!/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=""
+
+# not support multiarch
+not_multiarch_cnmaes="lucid marveric squeeze natty oneiric"
+
+#---------------------------------------
+# Debianコードネーム取得
+#---------------------------------------
+check_codename ()
+{
+ cnames="sarge etch lenny squeeze wheezy"
+ for c in $cnames; do
+ if test -f "/etc/apt/sources.list"; then
+ res=`grep $c /etc/apt/sources.list`
+ else
+ echo "This distribution may not be debian/ubuntu."
+ exit
+ fi
+ if test ! "x$res" = "x" ; then
+ DISTRIB_CODENAME=$c
+ fi
+ done
+}
+
+# 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"
+ check_codename
+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`/../../
+rm -f $packagedir/packages/openrtp*
+
+cp -r debian $packagedir
+
+# check multiarch support
+multiarch_flg="OFF"
+if test "x$dist_key" = "xDebian" || test "x$dist_key" = "xUbuntu" ; then
+ for c in $not_multiarch_cnmaes; do
+ if test $DISTRIB_CODENAME = $c ; then
+ mv $packagedir/debian/compat /tmp/compat.$$
+ echo 7 > $packagedir/debian/compat
+ mv $packagedir/debian/rules /tmp/rules.$$
+ cp $packagedir/debian/rules.not-multiarch $packagedir/debian/rules
+ DEB_HOST_ARCH=`dpkg-architecture -qDEB_HOST_ARCH`
+ if test "x$DEB_HOST_ARCH" = "xamd64" ; then
+ sed -i -s 's/lib-arch/lib64/' $packagedir/debian/rules
+ else
+ sed -i -s 's/lib-arch/lib/' $packagedir/debian/rules
+ fi
+ mv $packagedir/debian/control /tmp/control.$$
+ cp $packagedir/debian/control.not-multiarch $packagedir/debian/control
+ multiarch_flg="ON"
+ echo "... Multiarch not supported."
+ break
+ fi
+ done
+fi
+
+chmod 755 $packagedir/debian/rules
+
+cd $packagedir
+rm -f config.status
+dpkg-buildpackage -W -us -uc -rfakeroot
+
+mv $packagedir/../openrtp* $packagedir/packages/
+if test "x$multiarch_flg" = "xON" ; then
+ mv /tmp/compat.$$ $packagedir/debian/compat
+ mv /tmp/rules.$$ $packagedir/debian/rules
+ mv /tmp/control.$$ $packagedir/debian/control
+fi
Property changes on: trunk/rtmtools/packages/deb/dpkg_build.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/deb/ppa_tool.sh
===================================================================
--- trunk/rtmtools/packages/deb/ppa_tool.sh (rev 0)
+++ trunk/rtmtools/packages/deb/ppa_tool.sh 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,359 @@
+#!/bin/sh
+#
+# @file ppa_tool.sh
+# @brief Launchpad/PPA packaging and publising tool for multiple distroseries
+# @author Noriaki Ando <n-ando at aist.go.jp>
+# @date Fri Jul 6 02:33:15 JST 2012
+#
+
+#
+# 0. Before publishing your package on the PPA, you should create
+# account on Launchpad, and register your OpenPGP key, and create
+# PPA place.
+#
+# 1. debian/changelog should have the following text in the first line
+#
+# ex. openrtm-aist (1.1.0-1~ppa1lucid) lucid; urgency=low
+# <package name> (X.Y.Z-N~ppaMxxxx) yyyyyy; urgency=zzzzz
+# ~ppa[number] should be added to normal version string of deb package.
+#
+# 2. Before making dput your package to PPA, it is recommended to make
+# source package with '-s' option and try to build it in the local
+# enviuronment.
+#
+# $ ppa_tool.sh -p password -s lucid
+# $ cd ../ ; mkdir ../tmp
+# $ tar -C ../tmp xvzf ../your_package.tar.gz
+# $ cd ../tmp/your_package ; debuild -us -uc
+#
+# 3. If your source pacakge is built without any error, now you can
+# make dput your source package to your PPA.
+#
+# $ cd -
+# $ ppa_tool.sh -p password -t ppa:your_account/ppa_place -a
+# # -a: dput your source to all current supported distro-versions
+#
+
+# Global variables:
+#
+# DEBUG:
+# Debug flag. some functions print debug messages if some value is set.
+# PASSWORD:
+# Password to unlock gpgkey. This is used when package is signed.
+# USERNAME:
+# User name to specify GPG key to sign source package.
+# GPGKEYID
+# GPG key ID to specify GPG key.
+# VERSION
+# Version number to be inserted to the package name.
+# PPAHOST
+# PPA target host name to be given to dput command.
+# TARGETS
+# A list of distroseries name.
+# SUPPORTED
+# Supported distroseries versions.
+# SUPPORTED_LIST
+# Supported distroseries versions with version numbers. Separated by comma.
+#
+
+get_distroseries()
+{
+ if ! test -f /tmp/meta-release; then
+ wget -q -O /tmp/meta-release http://changelogs.ubuntu.com/meta-release
+ fi
+ SUPPORTED=`awk 'BEGIN{RS="";FS="\n";}{if ($5 == "Supported: 1"){sub("Dist: ",""); sub(" ","",$1); printf("%s ",$1);}}END{printf("\n")}' /tmp/meta-release`
+ SUPPORTED_LIST=`awk 'BEGIN{RS="";FS="\n";}{if ($5 == "Supported: 1"){sub("Dist: ",""); sub("Version: ",""); printf("%s\t%s,",$1,$3);}}' /tmp/meta-release`
+}
+
+print_short_usage()
+{
+ get_distroseries
+ echo "\nUsage: $(basename $0) [OPTION]... [DISTROSERIES]..."
+ echo ""
+ echo "Optinos:"
+ echo " -p <password> password to unlock gpg key"
+# echo " -u <username> username for gpg key"
+# echo " -k <key ID> gpg key ID"
+ echo " -v <version> versioned package"
+ echo " -t <ppa host> target ppa host location"
+ echo " -a publish for all supported distroseries"
+ echo " [DISTROSERIES] = $SUPPORTED"
+ echo " -s only create source package in local"
+ echo " -h print this help"
+ echo ""
+}
+
+print_usage()
+{
+ print_short_usage
+ echo "Supported Distroseries:"
+ local __IFS=$IFS
+ IFS="," # SUPPORTED_LIST'S delimter is ","
+ for dist in $SUPPORTED_LIST; do
+ echo " $dist"
+ done
+ IFS=$__IFS
+ echo ""
+ echo "EXAMPLES"
+ echo " Send packages for only LTS to openrtm/releases ppa."
+ echo ""
+ echo " $(basename $0) -p hoge -t ppa:openrtm/releases hardy lucid"
+ echo ""
+ echo " Send packages for all supported versions to my_ppa. Password is"
+ echo " required to sign for each packages."
+ echo ""
+ echo " $(basename $0) -t my_ppa -a"
+ echo ""
+ echo " Only creating source package without sending it to ppa host."
+ echo ""
+ echo " $(basename $0) -t my_ppa -t "
+ echo ""
+ exit 0
+}
+
+get_opt()
+{
+ # -p <password> password to unlock gpg key
+ # -u <username> username for gpg key
+ # -k <key ID> gpg key ID
+ # -v <version> versioned package
+ #
+ PASSWORD=""
+ PPAHOST=""
+ VERSION=""
+ NO_DPUT=""
+ while getopts "p:u:k:t:v:hsa" OPT; do
+ case $OPT in
+ \?) print_short_usage; exit 1;;
+ p) PASSWORD="$OPTARG";;
+ u) USERNAME="$OPTARG";;
+ k) GPGKEYID="$OPTARG";;
+ t) PPAHOST="$OPTARG";;
+ v) VERSION="$OPTARG";;
+ s) NO_DPUT="True";;
+ a) ALLDIST="True";;
+ h) print_usage; exit 0;
+ esac
+ done
+ shift $(( $OPTIND - 1))
+ TARGETS=$@
+
+ # No distroseries without -a is not allowed
+ if test $# -eq 0; then
+ if test "x$ALLDIST" = "x"; then
+ echo "ERROR: no distroseries name specified."
+ print_short_usage
+ exit 1
+ else
+ # Getting supported distroseries
+ get_distroseries
+ TARGETS=$SUPPORTED
+ fi
+ fi
+
+ # No -t option without -s option is now allowed
+ if test "x$PPAHOST" = "x"; then
+ if test "x$NO_DPUT" = "x"; then
+ echo "ERROR: Option -t with PPA host is necessary"
+ print_short_usage
+ exit 1
+ fi
+ fi
+ # DEBUG
+ if ! test "x$DEBUG" = "x"; then
+ echo "PASSWORD: " $PASSWORD
+ echo "USERNAME: " $USERNAME
+ echo "GPGKEYID: " $GPGKEYID
+ echo "VERSION : " $VERSION
+ echo "PPAHOST : " $PPAHOST
+ echo "TARGETS : " $TARGETS
+ fi
+}
+
+get_package_name()
+{
+ if test -f debian/changelog; then
+ PACKAGE_NAME=`head -n 1 debian/changelog | awk '{print $1;}'`
+ echo "Pacakge base name is: " $PACKAGE_NAME
+ else
+ echo "ERROR: debian/changelog not found."
+ exit 1
+ fi
+}
+
+check_debiandir()
+{
+ # checking debian directory
+ if ! test -d debian ; then
+ echo "ERROR: debian directory not found"
+ echo " This directory should have debian directory"
+ echo " and control, changelog, etc in it."
+ exit -1
+ fi
+ # checking control file
+ if ! test -f debian/control; then # if control not found,
+ for d in $TARGETS; do # control.<codename> should exist
+ if $DEBUG; then
+ echo "Checking debian/control.$d"
+ fi
+ if ! test -f debian/control.$d; then
+ echo "ERROR: No control files found."
+ echo " debian dir should have at least one control file"
+ echo " or control.<release name> files."
+ exit 1
+ fi
+ done
+ else
+ echo "\ndebian/control found."
+ for d in $TARGETS; do
+ if test -f debian/control.$d; then
+ echo "debian/control.$d used for $d"
+ else
+ echo "debian/control used for $d"
+ fi
+ done
+ echo ""
+ fi
+ # checking changelog file
+ if ! test -f debian/changelog ; then
+ echo "ERROR: No changelog file found."
+ exit -1
+ fi
+}
+
+clean_source()
+{
+ if test -f "Makefile"; then
+ make clean
+ make distclean
+ fi
+}
+
+backup_debfiles()
+{
+ trap reset_debfiles 2
+ tar czf /tmp/debian.$PACKAGE_NAME.$$.tgz debian
+ echo "Backed up debian to /tmp/debian.$PACKAGE_NAME.$$.tgz"
+}
+
+
+reset_debfiles()
+{
+ if test -f /tmp/debian.$PACKAGE_NAME.$$.tgz; then
+ rm -rf debian
+ tar xzf /tmp/debian.$PACKAGE_NAME.$$.tgz
+ echo "debian directory has been restored."
+ fi
+ trap 2
+}
+
+modify_changelog()
+{
+ # modify_changelog <release name>
+ if ! test $# -eq 1; then
+ echo "Internal ERROR: modify_changelog should have one arg."
+ finalize
+ exit 1
+ fi
+ local RELEASE=$1
+ if test -f debian/changelog.ppa; then
+ cp debian/changelog.ppa debian/changelog
+ fi
+ sed -i \
+ -e "1,1 s/^\(.*~ppa[0-9]\+\)\(.*\)\().*\)$/\1${RELEASE}\3/" \
+ -e "1,1 s/^\(.*) \)\(.*\)\(;.*\)$/\1${RELEASE}\3/" \
+ debian/changelog
+ echo "debian/changelog modified."
+ echo "$(head -n 1 debian/changelog)"
+}
+
+
+modify_control()
+{
+ # modify_control <release name>
+ if ! test $# -eq 1; then
+ echo "Internal ERROR: modify_control should have one arg."
+ finalize
+ exit 1
+ fi
+ local RELEASE=$1
+ if test -f debian/control.${RELEASE}; then
+ rm debian/control
+ cp debian/control.${RELEASE} debian/control
+ echo "Using debian/control.${RELEASE}"
+ fi
+}
+
+build_and_dput()
+{
+ if test "x$PASSWORD" = "x"; then
+ debuild -i -I -S -sa > /tmp/debuild.$$.log
+ else
+ export LC_ALL=C
+ expect -c "
+ set timeout 60
+ spawn debuild -i -I -S -sa
+ expect passphrase:\ ; send \"$PASSWORD\r\"
+ expect passphrase:\ ; send \"$PASSWORD\r\"
+ interact
+ " > /tmp/debuild.$$.log
+ fi
+ # getting changes file name
+ ls -al /tmp/debuild.$$.log
+ local CHANGES="$(sed -n 's/^.*signfile \(.*\.changes\).*$/\1/p' /tmp/debuild.$$.log)"
+ if test "x$NO_DPUT" = "x"; then
+ echo -e "\nPublishing to $DPUT_TARGET with ../$CHANGES"
+ dput $PPAHOST ../$CHANGES
+ rm ../$(basename $CHANGES _source.changes)*
+ fi
+}
+
+insert_version()
+{
+ if test "x$VERSION" = "x"; then
+ return 0
+ fi
+ local ver=$VERSION
+ local pkg=$PACKAGE_NAME
+ echo "Replacing $pkg to $pkg$ver"
+ # control files
+ sed -i "s/$pkg/$pkg$ver/g" debian/control*
+ # changelog
+ sed -i "s/$pkg/$pkg$ver/g" debian/changelog
+ # rules
+ sed -i "s/debian\/$pkg/debian\/$pkg$ver/g" debian/rules
+}
+
+finalize()
+{
+ reset_debfiles
+}
+
+
+#------------------------------------------------------------
+# main
+#------------------------------------------------------------
+# checking and getting options
+if test $# -eq 0 ; then
+ print_usage
+ exit -1
+fi
+get_opt $@
+
+# getting package name and checking debian directory and files
+check_debiandir
+get_package_name
+
+# backup debian directory
+
+for RELNAME in $TARGETS; do
+ backup_debfiles
+ clean_source
+ modify_changelog $RELNAME
+ modify_control $RELNAME
+ insert_version
+ build_and_dput
+ reset_debfiles
+done
+
+exit 0
Added: trunk/rtmtools/packages/rpm/Makefile.am
===================================================================
--- trunk/rtmtools/packages/rpm/Makefile.am (rev 0)
+++ trunk/rtmtools/packages/rpm/Makefile.am 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,55 @@
+## -*- 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_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: trunk/rtmtools/packages/rpm/Makefile.am
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/rpm/OpenRTM-aist.spec.in
===================================================================
--- trunk/rtmtools/packages/rpm/OpenRTM-aist.spec.in (rev 0)
+++ trunk/rtmtools/packages/rpm/OpenRTM-aist.spec.in 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,154 @@
+#------------------------------------------------------------
+#
+# @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}
+%define rtm_libdir %{_libdir}/openrtm-%{shortversion}
+
+#------------------------------------------------------------
+# 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 CFLAGS="-O2 -g" CXXFLAGS="-O2 -g"
+%{__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: trunk/rtmtools/packages/rpm/OpenRTM-aist.spec.in
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/rpm/dist_key.sh
===================================================================
--- trunk/rtmtools/packages/rpm/dist_key.sh (rev 0)
+++ trunk/rtmtools/packages/rpm/dist_key.sh 2015-06-08 02:55:19 UTC (rev 531)
@@ -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: trunk/rtmtools/packages/rpm/dist_key.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/rpm/fedora_repo.sh
===================================================================
--- trunk/rtmtools/packages/rpm/fedora_repo.sh (rev 0)
+++ trunk/rtmtools/packages/rpm/fedora_repo.sh 2015-06-08 02:55:19 UTC (rev 531)
@@ -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: trunk/rtmtools/packages/rpm/fedora_repo.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/rpm/fedora_rpmcp.sh
===================================================================
--- trunk/rtmtools/packages/rpm/fedora_rpmcp.sh (rev 0)
+++ trunk/rtmtools/packages/rpm/fedora_rpmcp.sh 2015-06-08 02:55:19 UTC (rev 531)
@@ -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: trunk/rtmtools/packages/rpm/fedora_rpmcp.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/rpm/pkgbuild.sh
===================================================================
--- trunk/rtmtools/packages/rpm/pkgbuild.sh (rev 0)
+++ trunk/rtmtools/packages/rpm/pkgbuild.sh 2015-06-08 02:55:19 UTC (rev 531)
@@ -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: trunk/rtmtools/packages/rpm/pkgbuild.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/rpm/rpm_build.sh.in
===================================================================
--- trunk/rtmtools/packages/rpm/rpm_build.sh.in (rev 0)
+++ trunk/rtmtools/packages/rpm/rpm_build.sh.in 2015-06-08 02:55:19 UTC (rev 531)
@@ -0,0 +1,99 @@
+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 --target `uname -i` --define "$rpm_def" -ba OpenRTM-aist.spec
+cd ..
+rm $packagename
Property changes on: trunk/rtmtools/packages/rpm/rpm_build.sh.in
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/rpm/vine_repo.sh
===================================================================
--- trunk/rtmtools/packages/rpm/vine_repo.sh (rev 0)
+++ trunk/rtmtools/packages/rpm/vine_repo.sh 2015-06-08 02:55:19 UTC (rev 531)
@@ -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: trunk/rtmtools/packages/rpm/vine_repo.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/rtmtools/packages/rpm/vine_rpmcp.sh
===================================================================
--- trunk/rtmtools/packages/rpm/vine_rpmcp.sh (rev 0)
+++ trunk/rtmtools/packages/rpm/vine_rpmcp.sh 2015-06-08 02:55:19 UTC (rev 531)
@@ -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: trunk/rtmtools/packages/rpm/vine_rpmcp.sh
___________________________________________________________________
Added: svn:executable
+ *
More information about the openrtm-commit
mailing list