[openrtm-commit:01389] r2537 - trunk/OpenRTM-aist/win32/OpenRTM-aist
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 3月 20日 (木) 18:05:23 JST
Author: n-ando
Date: 2014-03-20 18:05:23 +0900 (Thu, 20 Mar 2014)
New Revision: 2537
Added:
trunk/OpenRTM-aist/win32/OpenRTM-aist/make_package.sh
trunk/OpenRTM-aist/win32/OpenRTM-aist/prepare_openrtm.sh
trunk/OpenRTM-aist/win32/OpenRTM-aist/prepare_openrtm_inst.sh
Modified:
trunk/OpenRTM-aist/win32/OpenRTM-aist/Makefile.am
trunk/OpenRTM-aist/win32/OpenRTM-aist/build.bat
Log:
Build scripts added, Makefile.am has been modified to copy COPYRIGHT/README files to win dist package.
Modified: trunk/OpenRTM-aist/win32/OpenRTM-aist/Makefile.am
===================================================================
--- trunk/OpenRTM-aist/win32/OpenRTM-aist/Makefile.am 2014-03-14 16:54:05 UTC (rev 2536)
+++ trunk/OpenRTM-aist/win32/OpenRTM-aist/Makefile.am 2014-03-20 09:05:23 UTC (rev 2537)
@@ -73,8 +73,17 @@
coil_config.props:
cp -p $(top_srcdir)/src/lib/coil/win32/coil_config.props .
-dist-hook: clean-local sln vsprops
+copyright:
+ cp $(top_srcdir)/AUTHORS .
+ cp $(top_srcdir)/ChangeLog .
+ cp $(top_srcdir)/COPYING.LIB .
+ cp $(top_srcdir)/COPYRIGHT .
+ cp $(top_srcdir)/README .
+ cp $(top_srcdir)/README.jp .
+
+dist-hook: clean-local sln vsprops copyright
+
EXTRA_DIST = \
OpenRTM-aist.sln.dep \
autobuild_vc8.bat \
@@ -87,6 +96,15 @@
coil_distbuild.props \
coil_config.props \
rtm_distbuild.props \
- rtm_config.props
+ rtm_config.props \
+ make_package.sh \
+ prepare_openrtm.sh \
+ prepare_openrtm_inst.sh \
+ AUTHORS \
+ ChangeLog \
+ COPYING.LIB \
+ COPYRIGHT \
+ README \
+ README.jp
Modified: trunk/OpenRTM-aist/win32/OpenRTM-aist/build.bat
===================================================================
--- trunk/OpenRTM-aist/win32/OpenRTM-aist/build.bat 2014-03-14 16:54:05 UTC (rev 2536)
+++ trunk/OpenRTM-aist/win32/OpenRTM-aist/build.bat 2014-03-20 09:05:23 UTC (rev 2537)
@@ -79,47 +79,62 @@
@rem ============================================================
:x86
echo Compiling 32bit binaries
+echo Setting up Visual C++ environment.
+if %VC_VERSION% == 9 (call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 ; goto VCBUILDx86)
+if %VC_VERSION% == 10 (call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat%" x86 ; goto MSBUILDx86)
+if %VC_VERSION% == 11 (call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 ; goto MSBUILDx86)
+if %VC_VERSION% == 12 (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86 ; goto MSBUILDx86)
@rem ------------------------------------------------------------
- at rem Setting up Visual C++ environment
-echo Setting up Visual C++ environment.
-if %VC_VERSION% == 9 (call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86)
-if %VC_VERSION% == 10 (call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat%" x86)
-if %VC_VERSION% == 11 (call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86)
-if %VC_VERSION% == 12 (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86)
+ at rem Build (VC2008 x86)
+ at rem ------------------------------------------------------------
+:VCBUILDx86
echo Visual Studio Dir: %VSINSTALLDIR%
echo LIB: %LIB%
+vcbuild /M2 /rebuild OpenRTM-aist_vc%VC_VERSION%.sln
+goto END
@rem ------------------------------------------------------------
- at rem Build
+ at rem Build (VC2010- x86)
@rem ------------------------------------------------------------
-msbuild /M:2 /t:rebuild /p:configuration=debug OpenRTM-aist_vc10.sln
-msbuild /M:2 /t:rebuild /p:configuration=release OpenRTM-aist_vc10.sln
+:MSBUILDx86
+echo Visual Studio Dir: %VSINSTALLDIR%
+echo LIB: %LIB%
+msbuild /M:2 /t:rebuild /p:configuration=debug OpenRTM-aist_vc%VC_VERSION%.sln
+msbuild /M:2 /t:rebuild /p:configuration=release OpenRTM-aist_vc%VC_VERSION%.sln
+goto END
-goto end
-
@rem ============================================================
@rem Compiling 64bit binaries
@rem ============================================================
:x86_64
echo Compiling 64bit binaries
+ at rem Setting up Visual C++ environment
+if /i %VC_VERSION% == 9 (call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x64 ; goto VCBUILDx64)
+if /i %VC_VERSION% == 10 (call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x64 ; goto MSBUILDx64)
+if /i %VC_VERSION% == 11 (call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x64 ; goto MSBUILDx64)
+if /i %VC_VERSION% == 12 (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64 ; goto MSBUILDx64)
+echo Visual Studio Dir: %VSINSTALLDIR%
+echo LIB: %LIB%
@rem ------------------------------------------------------------
- at rem Setting up Visual C++ environment
-if /i %VC_VERSION% == 9 (call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x64)
-if /i %VC_VERSION% == 10 (call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x64)
-if /i %VC_VERSION% == 11 (call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x64)
-if /i %VC_VERSION% == 12 (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64)
+ at rem Build (VC2008 x64)
+ at rem ------------------------------------------------------------
+:VCBUILDx64
echo Visual Studio Dir: %VSINSTALLDIR%
echo LIB: %LIB%
+vcbuild /M2 /rebuild OpenRTM-aist_vc%VC_VERSION%.sln
+goto END
@rem ------------------------------------------------------------
- at rem Build
+ at rem Build (VC2010- x64)
@rem ------------------------------------------------------------
+:MSBUILDx64
+echo Visual Studio Dir: %VSINSTALLDIR%
+echo LIB: %LIB%
set VC_VERSION=10_x64
- at rem msbuild /M:4 /t:build /fileLogger /flp:logfile=debug.log /v:diag /p:configuration=debug /p:platform=x64 OpenRTM-aist_vc10.sln
-msbuild /M:4 /t:build /fileLogger /flp:logfile=release.log /v:diag /p:configuration=release /p:platform=x64 OpenRTM-aist_vc10.sln
+msbuild /M:4 /t:rebuild /fileLogger /flp:logfile=debug.log /v:diag /p:configuration=debug /p:platform=x64 OpenRTM-aist_vc%VC_VERSION%.sln
+msbuild /M:4 /t:rebuild /fileLogger /flp:logfile=release.log /v:diag /p:configuration=release /p:platform=x64 OpenRTM-aist_vc%VC_VERSION%.sln
+goto END
-goto end
-
-:end
+:END
Added: trunk/OpenRTM-aist/win32/OpenRTM-aist/make_package.sh
===================================================================
--- trunk/OpenRTM-aist/win32/OpenRTM-aist/make_package.sh (rev 0)
+++ trunk/OpenRTM-aist/win32/OpenRTM-aist/make_package.sh 2014-03-20 09:05:23 UTC (rev 2537)
@@ -0,0 +1,88 @@
+#!/bin/sh
+#
+# @brief Archiving OpenRTM-aist Windows binaries in to a ZIP file
+# @author Noriaki Ando <n-ando at aist.go.jp>
+# Copyright 2014 (C) All Right Reserved
+#
+# This is part of OpenRTM-aist build scripts suite
+# for building OpenRTM-aist for Windows binaries.
+#
+# The following environment variables should be set.
+# ex.
+export OPENRTM_DIR=OpenRTM-aist
+export PYTHON_DIR=/cygdrive/c/Python27
+export VC_VERSION=10
+export ARCH=x86
+export PATH=${PATH}:/bin:/usr/bin
+#
+#==============================
+# main
+if test "x$OPENRTM_DIR" = "x" ; then
+ echo "OPENRTM_DIR not defined"
+ exit -1
+fi
+
+/usr/bin/find ./$OPENRTM_DIR -type d -exec chmod 755 {} \;
+/usr/bin/find ./$OPENRTM_DIR -type f -exec chmod 644 {} \;
+
+
+echo "Current dir: " `pwd`
+echo "OPENRTM_DIR: " ${OPENRTM_DIR}
+echo "Removing auto generated temp files."
+/usr/bin/find ./$OPENRTM_DIR -name '*.pyc' -type f -exec rm {} \;
+/usr/bin/find ./$OPENRTM_DIR -name '*.sdf' -type f -exec rm {} \;
+/usr/bin/find ./$OPENRTM_DIR -name '*.suo' -type f -exec rm {} \;
+/usr/bin/find ./$OPENRTM_DIR -name '*.yaml' -type f -exec rm {} \;
+/usr/bin/find ./$OPENRTM_DIR -name 'Makefile' -type f -exec rm {} \;
+/usr/bin/find ./$OPENRTM_DIR -name 'Makefile.in' -type f -exec rm {} \;
+/usr/bin/find ./$OPENRTM_DIR -name 'Makefile.am' -type f -exec rm {} \;
+dirs="rtm examples utils"
+dirs=""
+for d in $dirs ; do
+ /usr/bin/find ./$OPENRTM_DIR/$d/ -name '*.obj' -type f -exec rm {} \;
+ /usr/bin/find ./$OPENRTM_DIR/$d/ -name '*.pdb' -type f -exec rm {} \;
+ /usr/bin/find ./$OPENRTM_DIR/$d/ -name '*.tlog' -type f -exec rm {} \;
+ /usr/bin/find ./$OPENRTM_DIR/$d/ -name '*.dll' -type f -exec rm {} \;
+ /usr/bin/find ./$OPENRTM_DIR/$d/ -name '*.lib' -type f -exec rm {} \;
+ /usr/bin/find ./$OPENRTM_DIR/$d/ -name '*.exp' -type f -exec rm {} \;
+ /usr/bin/find ./$OPENRTM_DIR/$d/ -name '*.def' -type f -exec rm {} \;
+ /usr/bin/find ./$OPENRTM_DIR/$d/ -name '*.res' -type f -exec rm {} \;
+ /usr/bin/find ./$OPENRTM_DIR/$d/ -name '*.rc' -type f -exec rm {} \;
+ /usr/bin/find ./$OPENRTM_DIR/$d/ -name '*.exe' -type f -exec rm {} \;
+ /usr/bin/find ./$OPENRTM_DIR/$d/ -name '*.user' -type f -exec rm {} \;
+done
+
+echo "done"
+
+if test "x$ARCH" = "xx86" ; then
+ WIN_ARCH=win32
+elif test "x$ARCH" = "xx86_64" ; then
+ WIN_ARCH=win64
+else
+ echo "Unknown architecture: " $ARCH
+ exit -1
+fi
+
+if test "x$PYTHON_DIR" = "x" ; then
+ echo "PYTHON_DIR is not defined. "
+ exit -1
+else
+ PY_VER=`echo $PYTHON_DIR | sed 's/.*[Pp][Yy][Tt][Hh][Oo][Nn]\([0-9][0-9]\).*/\1/'`
+fi
+
+NEW_DIR=${OPENRTM_DIR}-${WIN_ARCH}-vc${VC_VERSION}
+ZIP_FILE=${OPENRTM_DIR}-${WIN_ARCH}-vc${VC_VERSION}.zip
+
+echo "NEW_DIR: " ${NEW_DIR}
+echo "OPENRTM_DIR: " ${OPENRTM_DIR}
+echo "ZIP_FILE: " ${ZIP_FILE}
+
+rm -rf ${NEW_DIR}
+cp -r ${OPENRTM_DIR} ${NEW_DIR}
+
+rm -rf ${ZIP_FILE}
+zip -r ${ZIP_FILE} ${NEW_DIR}
+rm -rf ${NEW_DIR}
+
+# end of script
+#==============================
\ No newline at end of file
Added: trunk/OpenRTM-aist/win32/OpenRTM-aist/prepare_openrtm.sh
===================================================================
--- trunk/OpenRTM-aist/win32/OpenRTM-aist/prepare_openrtm.sh (rev 0)
+++ trunk/OpenRTM-aist/win32/OpenRTM-aist/prepare_openrtm.sh 2014-03-20 09:05:23 UTC (rev 2537)
@@ -0,0 +1,95 @@
+#!/bin/sh
+#
+# @brief Preparing OpenRTM-aist build environment on Windows
+# @author Noriaki Ando <n-ando at aist.go.jp>
+# Copyright 2014 (C) All Right Reserved
+#
+# This is part of build.bat omniORB build batch file
+# for building omniORB for Windows binaries.
+#
+# The following environment variables should be set.
+#
+# OMNI_VERSION (= 4.1.7, ...)
+# OMNITH_VER (= 3.4, ...)
+# PYTHON_DIR (= /cygdrive/c/Python27)
+# VC_VERSION (= 9, 10, ...)
+# ARCH (= x86 or x64)
+#
+export PATH=/cygdrive/c/cygwin64/bin:$PATH
+echo `pwd`
+
+check_env()
+{
+
+ if test "x$ARCH" = "xx86" ;then
+ WIN_ARCH="win32"
+ elif test "x$ARCH" = "xx86_64" ;then
+ WIN_ARCH="win64"
+ else
+ echo "ARCH not defined"
+ exit -1
+ fi
+ if test "x$VC_VERSION" = "x" ; then
+ echo "VC_VERSION not defined."
+ exit -1
+ fi
+ if test "x$OMNI_VERSION" = "x" ; then
+ echo "OMNI_VERSION not defined."
+ exit -1
+ else
+ OMNI_SHORT_VER=`echo $OMNI_VERSION | sed 's/\.//g'`
+ fi
+ if test "x$OMNITH_VER" = "x" ; then
+ echo "OMNITH_VER not defined."
+ exit -1
+ else
+ OMNITH_SHORT_VER=`echo $OMNITH_VER | sed 's/\.//g'`
+ fi
+ if test "xPYTHON_DIR" = "x" ; then
+ echo "PYTHON_DIR not defined."
+ exit -1
+ else
+ PY_VERSION=`echo ${PYTHON_DIR} | sed 's/.*ython\([0-9][0-9]\).*/\1/'`
+ fi
+ base_url="http://openrtm.org/pub/omniORB/win32/omniORB-${OMNI_VERSION}/"
+
+ OMNIORB_ZIP=omniORB-${OMNI_VERSION}-${WIN_ARCH}-vc${VC_VERSION}-py${PY_VERSION}.zip
+ OMNIORB_URL=${base_url}/${OMNIORB_ZIP}
+}
+
+unpack_omnibin()
+{
+ # getting omniORB-4.1.7.tar.bz2
+ if test ! -f $OMNIORB_ZIP ; then
+ wget $OMNIORB_URL
+ fi
+ unzip $OMNIORB_ZIP
+}
+
+unpack_openrtm()
+{
+ OPENRTM_ZIP=`ls OpenRTM-aist*.zip`
+ if test "x$OPENRTM_ZIP" = "x" ; then
+ echo "OpenRTM-aist ZIP file not found."
+ exit 1
+ fi
+ unzip $OPENRTM_ZIP
+}
+
+copy_props()
+{
+ OpenRTM-aist/etc/rtm_config_omniorb415.vcprops OpenRTM-aist/rtm_config.vcprops
+ OpenRTM-aist/etc/rtm_config_omniorb415.props OpenRTM-aist/rtm_config.props
+
+ sed -i "s/415/$OMNI_SHORT_VER/g" OpenRTM-aist/rtm_config.vcprops
+ sed -i "s/34/$OMNITH_SHORT_VER/g" OpenRTM-aist/rtm_config.vcprops
+ sed -i "s/415/$OMNI_SHORT_VER/g" OpenRTM-aist/rtm_config.props
+ sed -i "s/34/$OMNITH_SHORT_VER/g" OpenRTM-aist/rtm_config.props
+}
+check_env
+unpack_omnibin
+unpack_openrtm
+
+
+# end of ecript
+#==============================
Added: trunk/OpenRTM-aist/win32/OpenRTM-aist/prepare_openrtm_inst.sh
===================================================================
--- trunk/OpenRTM-aist/win32/OpenRTM-aist/prepare_openrtm_inst.sh (rev 0)
+++ trunk/OpenRTM-aist/win32/OpenRTM-aist/prepare_openrtm_inst.sh 2014-03-20 09:05:23 UTC (rev 2537)
@@ -0,0 +1,214 @@
+#!/bin/sh
+#
+# @brief Preparing omniORB WiX merge module build environment
+# @author Noriaki Ando <n-ando at aist.go.jp>
+# Copyright 2014 (C) All Right Reserved
+#
+# This script copy the following omniORB files to specific directories
+# runtime: DLL and EXE for runtime environemnt
+# --> omniORB_runtime
+# devel : headers, omniidl and backends python scripts and others
+# --> omniORB_devel
+#
+# OpenRTM_runtime
+# + <version>
+# + bin
+# + etc
+# + ext
+# + sdo
+#
+# OpenRTM_devel
+# + <version>
+# + cmake
+# + coil
+# + lib
+# + rtm
+# + idl
+# + utils
+# + rtc-template
+#
+# OpenRTM_examples
+# + <version>
+# + examples
+# + C++
+#
+# OpenRTM_doc
+# + <version>
+# + doc
+#
+
+export PATH=/cygdrive/c/cygwin64/bin:$PATH
+echo `pwd`
+VERSION=""
+#ARCH=""
+#VC_VERSION=""
+
+script_name=$(basename $0)
+
+usage()
+{
+ echo <<EOF
+ $script_name <filename or URL>
+
+Local file mode:
+ $script_name OpenRTM-bin.zip
+
+Download mode
+ $script_name http://<OpenRTM bin URL>/OpenRTM-X.Y.Z-winXX-vcX.zip
+
+EOF
+}
+
+download_openrtm_binpkg()
+{
+ wget $DOWNLOAD_URL
+}
+
+find_openrtm_binpkg()
+{
+ VERSION=`echo $LOCAL_FILE | sed 's/OpenRTM-aist-\([0-9\.]*\)-.*.zip/\1/'`
+ ARCH=`echo $LOCAL_FILE | sed 's/OpenRTM-.*-win\([0-9]*\)-.*.zip/\1/'`
+ VC_VERSION=`echo $LOCAL_FILE | sed 's/OpenRTM.*-vc\([0-9]*\).*.zip/\1/'`
+ OPENRTM_PKG=$LOCAL_FILE
+ echo "VERSION: " $VERSION
+ RUNTIME_DIR=OpenRTM_runtime/${VERSION}_vc$VC_VERSION
+ DEVEL_DIR=OpenRTM_devel/${VERSION}_vc$VC_VERSION
+ EXAMPLE_DIR=OpenRTM_example/${VERSION}_vc$VC_VERSION
+ DOC_DIR=OpenRTM_doc/${VERSION}_vc$VC_VERSION
+}
+
+extract_package()
+{
+ find -maxdepth 1 -type d -name 'OpenRTM-*' -exec rm -rf {} \;
+ unzip -x $OPENRTM_PKG
+ OPENRTM_DIR=`find -maxdepth 1 -type d -name 'OpenRTM-*'`
+}
+
+cleanup_dirs()
+{
+ OPENRTM_DIR=`find -maxdepth 1 -type d -name 'OpenRTM-*'`
+ rm -rf OpenRTM_runtime
+ rm -rf OpenRTM_examples
+ rm -rf OpenRTM_devel
+ rm -rf OpenRTM_doc
+}
+
+create_dirs()
+{
+ mkdir -p $RUNTIME_DIR/{bin,etc,ext/sdo}
+ mkdir -p $EXAMPLE_DIR//examples/C++
+ mkdir -p $DEVEL_DIR/{cmake,coil,lib,rtm/idl,utils/rtc-template}
+ mkdir -p $DOC_DIR/doc/C++
+ find . -type d -exec chmod 755 {} \;
+ find . -type f -exec chmod 644 {} \;
+}
+
+copy_runtime_files()
+{
+ if test "x$OPENRTM_DIR" = "x" ; then
+ echo "Variable OPENRTM_DIR is not set. Aborting"
+ exit -1
+ fi
+ cp $OPENRTM_DIR/AUTHORS $RUNTIME_DIR/
+ cp $OPENRTM_DIR/ChangeLog $RUNTIME_DIR/
+ cp $OPENRTM_DIR/COPYING.LIB $RUNTIME_DIR/
+ cp $OPENRTM_DIR/COPYRIGHT $RUNTIME_DIR/
+ cp $OPENRTM_DIR/INSTALL.jp $RUNTIME_DIR/
+ cp $OPENRTM_DIR/README $RUNTIME_DIR/
+ cp $OPENRTM_DIR/README.jp $RUNTIME_DIR/
+ cp $OPENRTM_DIR/THIS_IS_OPENRTM* $RUNTIME_DIR/
+
+ cp $OPENRTM_DIR/bin/*.dll $RUNTIME_DIR/bin/
+ cp $OPENRTM_DIR/bin/*.exe $RUNTIME_DIR/bin/
+ cp $OPENRTM_DIR/bin/*.py $RUNTIME_DIR/bin/
+ cp $OPENRTM_DIR/bin/*.bat $RUNTIME_DIR/bin/
+ cp $OPENRTM_DIR/bin/rtc.conf $RUNTIME_DIR/bin/
+ cp RTM_ROOT_dir.wxsctrl $RUNTIME_DIR/
+ cp OpenRTM_bin_dir.wxsctrl $RUNTIME_DIR/bin/
+
+ cp $OPENRTM_DIR/etc/rtc.conf.sample $RUNTIME_DIR/etc/
+
+ cp $OPENRTM_DIR/components/ComponentObserverConsumer.dll $RUNTIME_DIR/ext/sdo
+}
+
+copy_devel_files()
+{
+ if test "x$OPENRTM_DIR" = "x" ; then
+ echo "Variable OPENRTM_DIR is not set. Aborting"
+ exit -1
+ fi
+ cp -r $OPENRTM_DIR/cmake $DEVEL_DIR
+ cp $OPENRTM_DIR/coil/*.h $DEVEL_DIR/coil
+ cp $OPENRTM_DIR/coil/*.cpp $DEVEL_DIR/coil
+ cp $OPENRTM_DIR/bin/*.lib $DEVEL_DIR/lib
+ cp $OPENRTM_DIR/rtm/*.h $DEVEL_DIR/rtm
+ cp $OPENRTM_DIR/rtm/*.cpp $DEVEL_DIR/rtm
+ cp $OPENRTM_DIR/rtm/*.txt $DEVEL_DIR/rtm
+ cp $OPENRTM_DIR/rtm/idl/*.idl $DEVEL_DIR/rtm/idl
+ cp $OPENRTM_DIR/rtm/idl/*.cc $DEVEL_DIR/rtm/idl
+ cp $OPENRTM_DIR/rtm/idl/*.cpp $DEVEL_DIR/rtm/idl
+ cp $OPENRTM_DIR/rtm/idl/*.h $DEVEL_DIR/rtm/idl
+ cp $OPENRTM_DIR/rtm/idl/*.hh $DEVEL_DIR/rtm/idl
+ cp -r $OPENRTM_DIR/utils/rtc-template $DEVEL_DIR/utils/
+}
+
+copy_example_files()
+{
+ if test "x$OPENRTM_DIR" = "x" ; then
+ echo "Variable OPENRTM_DIR is not set. Aborting"
+ exit -1
+ fi
+ ORG_EX=$OPENRTM_DIR/examples/
+ DST_EX=$EXAMPLE_DIR/examples/C++
+ cp $OPENRTM_DIR/components/*.dll $EXAMPLE_DIR/examples/C++
+ rm -f $EXAMPLEL_DIR/examples/C++/ComponentObserverConsumer.dll
+ cp $OPENRTM_DIR/components/*.exe $EXAMPLE_DIR/examples/C++
+
+ cp $ORG_EX/SimpleIO/rtc.conf $DST_EX/
+ cp $ORG_EX/Composite/rtc_win32.conf $DST_EX/rtc_composite.conf
+ cp $ORG_EX/Composite/composite.conf $DST_EX/
+ cp $ORG_EX/ConfigSample/configsample.conf $DST_EX/
+}
+
+copy_doc_files()
+{
+ if test "x$OPENRTM_DIR" = "x" ; then
+ echo "Variable OPENRTM_DIR is not set. Aborting"
+ exit -1
+ fi
+ cp -r $OPENRTM_DIR/docs/* $DOC_DIR/doc/C++
+}
+
+#==============================
+# main
+#==============================
+
+if test $# != 1; then
+ usage
+ exit -1
+fi
+arg1=`echo $1 | grep '^http'`
+if test "x$arg1" != "x"; then
+ DOWNLOAD_URL=$1
+ download_omniorb_binpkg
+ LOCAL_FILE=`basename $DOWNLOAD_URL`
+else
+ LOCAL_FILE=$1
+fi
+if test ! -f $LOCAL_FILE ; then
+ echo "No such file: " $LOCAL_FILE
+ echo "Aborting."
+ exit -1
+fi
+
+find_openrtm_binpkg
+extract_package
+cleanup_dirs
+create_dirs
+copy_runtime_files
+copy_devel_files
+copy_example_files
+copy_doc_files
+
+# end of ecript
+#==============================
More information about the openrtm-commit
mailing list