[Vm-dev] [commit] r2184 - Pass svn revision to config.h in PLATFORM_SOURCE_VERSION

commits at squeakvm.org commits at squeakvm.org
Sun Apr 11 03:11:13 UTC 2010


Author: piumarta
Date: 2010-04-10 20:11:13 -0700 (Sat, 10 Apr 2010)
New Revision: 2184

Modified:
   trunk/platforms/unix/cmake/configure
   trunk/platforms/unix/vm/config.cmake
Log:
Pass svn revision to config.h in PLATFORM_SOURCE_VERSION

Modified: trunk/platforms/unix/cmake/configure
===================================================================
--- trunk/platforms/unix/cmake/configure	2010-04-11 03:09:41 UTC (rev 2183)
+++ trunk/platforms/unix/cmake/configure	2010-04-11 03:11:13 UTC (rev 2184)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Last edited: 2009-09-27 11:15:36 by piumarta on emilia-2.local
+# Last edited: 2010-04-10 19:38:50 by piumarta on ubuntu
 
 RELEASE_TAG=""
 
@@ -97,6 +97,7 @@
 fi
 
 VM_VERSION="${vmmversion}-${svnversion}${RELEASE_TAG}"
+PLATFORM_SOURCE_VERSION="${svnversion}"
 
 if ${stop}; then
     exit 1
@@ -106,7 +107,7 @@
 echo "-- Using source directory ${src}"
 
 if test -n "${cflags}"; then
-    cmake "${unix}" -DVM_HOST="${host}" -DVM_VERSION="${VM_VERSION}" -DOPT--CFLAGS="${cflags}" ${args}
+    cmake "${unix}" -DVM_HOST="${host}" -DVM_VERSION="${VM_VERSION}" -DPLATFORM_SOURCE_VERSION="${PLATFORM_SOURCE_VERSION}" -DOPT--CMAKE_C_FLAGS="${cflags}" ${args}
 else
-    cmake "${unix}" -DVM_HOST="${host}" -DVM_VERSION="${VM_VERSION}"                           ${args}
+    cmake "${unix}" -DVM_HOST="${host}" -DVM_VERSION="${VM_VERSION}" -DPLATFORM_SOURCE_VERSION="${PLATFORM_SOURCE_VERSION}"                                  ${args}
 fi

Modified: trunk/platforms/unix/vm/config.cmake
===================================================================
--- trunk/platforms/unix/vm/config.cmake	2010-04-11 03:09:41 UTC (rev 2183)
+++ trunk/platforms/unix/vm/config.cmake	2010-04-11 03:11:13 UTC (rev 2184)
@@ -216,8 +216,10 @@
 CONFIG_DEFINE (VM_HOST_OS)
 
 SET (VM_VERSION \"${VM_VERSION}\")
+SET (PLATFORM_SOURCE_VERSION \"${PLATFORM_SOURCE_VERSION}\")
 
 CONFIG_DEFINE (VM_VERSION)
+CONFIG_DEFINE (PLATFORM_SOURCE_VERSION)
 CONFIG_DEFINE (SQ_VERSION)
 
 CHECK_FUNCTION_EXISTS (tzset	HAVE_TZSET)



More information about the Vm-dev mailing list