[openrtm-commit:00020] r2074 - trunk/OpenRTM-aist/src/lib/rtm

openrtm at openrtm.org openrtm at openrtm.org
Fri Apr 29 19:34:23 JST 2011


Author: n-ando
Date: 2011-04-29 19:34:23 +0900 (Fri, 29 Apr 2011)
New Revision: 2074

Modified:
   trunk/OpenRTM-aist/src/lib/rtm/Makefile.am
Log:
Now version.txt is created.


Modified: trunk/OpenRTM-aist/src/lib/rtm/Makefile.am
===================================================================
--- trunk/OpenRTM-aist/src/lib/rtm/Makefile.am	2011-04-29 09:50:49 UTC (rev 2073)
+++ trunk/OpenRTM-aist/src/lib/rtm/Makefile.am	2011-04-29 10:34:23 UTC (rev 2074)
@@ -14,7 +14,7 @@
 AM_LDFLAGS=-L$(top_builddir) -L$(top_builddir)/src/lib/rtm -L$(top_builddir)/src/lib/rtm/idl -L$(top_builddir)/src/lib/coil/lib
 
 # version.h would be generated from configure before lib build process.
-BUILT_SOURCES = version.h
+BUILT_SOURCES = version.h version.txt
 version.h:
 	echo '// This header file is automatically generated.' > $@
 	echo '// Do not edit this file.' >> $@
@@ -23,6 +23,15 @@
 	echo 'const char* openrtm_version = "'${VERSION}'";' >> $@
 	echo 'const char* corba_name      = "'${ORB}'";' >> $@
 
+version.txt:
+	echo 'name = '${PACKAGE}'-'${VERSION} >> $@
+	echo 'language = C++' >> $@
+	echo 'version = '${RTM_VERSION}'' >> $@
+	echo 'major_version = '${RTM_MAJOR_VERSION} >> $@
+	echo 'minor_version = '${RTM_MINOR_VERSION} >> $@
+	echo 'revision_num = '${RTM_REVISION_NUM} >> $@
+	echo 'short_version = '${RTM_SHORT_VERSION} >> $@
+	echo 'corba = '${ORB} >> $@
 
 # libRTC.so, libRTC.a library build entry
 lib_LTLIBRARIES = libRTC.la
@@ -150,6 +159,7 @@
 lst:
 	echo $(RTC_SRC) > src.lst
 	echo $(rtmheader_HEADERS) > header.lst
+	echo version.txt >> header.lst
 
 #------------------------------------------------------------
 # Visual Studio Project
@@ -188,7 +198,7 @@
 		-c Headers \
 		-o $(win32_builddir)installer/headers.yaml \
 		-p ..\\rtm \
-		*.h
+		*.h version.txt
 
 
 



More information about the openrtm-commit mailing list