[openrtm-commit:01004] r424 - trunk/rtmtools

openrtm @ openrtm.org openrtm @ openrtm.org
2013年 2月 13日 (水) 15:55:44 JST


Author: n-ando
Date: 2013-02-13 15:55:44 +0900 (Wed, 13 Feb 2013)
New Revision: 424

Modified:
   trunk/rtmtools/make_packages
Log:
cd .. does not work when WORK_DIR has multiple level. The bug has been fixed.

Modified: trunk/rtmtools/make_packages
===================================================================
--- trunk/rtmtools/make_packages	2013-02-12 05:11:16 UTC (rev 423)
+++ trunk/rtmtools/make_packages	2013-02-13 06:55:44 UTC (rev 424)
@@ -377,20 +377,22 @@
     echo $tar
     if test ! "x$zip" = "x" ; then
         echo "Creating zip file..."
+        basedir=`pwd`
         cd $WORK_DIR
         find eclipse > .zip_list
         (cat .zip_list | zip -@ $pkg_name)
         rm -f .zip_list
-        cd ..
+        cd $basedir
         if test $? -ne 0 ;then
             echo "Failed to archive zip file: $pkg_name. Aborting..."
             exit 1
         fi
     elif test ! "x$tar" = "x" ; then
         echo "Creating tar.gz file..."
+        basedir=`pwd`
         cd $WORK_DIR
         tar cvzf $pkg_name eclipse
-        cd ..
+        cd $basedir
         if test $? -ne 0 ; then
             echo "Failed to archive tar.gz file: $pkg_name. Aborting..."
             exit 1



More information about the openrtm-commit mailing list