[asterisk-commits] tilghman: trunk r234700 - in /trunk: ./ build_tools/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 14 15:13:20 CST 2009


Author: tilghman
Date: Mon Dec 14 15:13:18 2009
New Revision: 234700

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=234700
Log:
Merged revisions 234699 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r234699 | tilghman | 2009-12-14 15:09:56 -0600 (Mon, 14 Dec 2009) | 5 lines
  
  Deal with the situation where .flavor exists but .version does not.
  Also make the script slightly more portable, in keeping with autoconf syntax.
  (closes issue #14737)
   Reported by: davidw
........

Modified:
    trunk/   (props changed)
    trunk/build_tools/make_version_c
    trunk/build_tools/make_version_h

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/build_tools/make_version_c
URL: http://svnview.digium.com/svn/asterisk/trunk/build_tools/make_version_c?view=diff&rev=234700&r1=234699&r2=234700
==============================================================================
--- trunk/build_tools/make_version_c (original)
+++ trunk/build_tools/make_version_c Mon Dec 14 15:13:18 2009
@@ -1,6 +1,9 @@
 #!/bin/sh
-if [ ! -f .flavor ]; then
+if test ! -f .flavor ; then
     EXTRA=""
+elif test ! -f .version ; then
+	aadkflavor=`cat .flavor`
+    EXTRA=" (${aadkflavor})"
 else
     aadkver=`cat .version`
     aadkflavor=`cat .flavor`

Modified: trunk/build_tools/make_version_h
URL: http://svnview.digium.com/svn/asterisk/trunk/build_tools/make_version_h?view=diff&rev=234700&r1=234699&r2=234700
==============================================================================
--- trunk/build_tools/make_version_h (original)
+++ trunk/build_tools/make_version_h Mon Dec 14 15:13:18 2009
@@ -1,11 +1,22 @@
 #!/bin/sh
-if [ ! -f .flavor ]; then
+if test ! -f .flavor ; then
     cat << END
 /*
  * version.h 
  * Automatically generated
  */
 #define ASTERISK_VERSION "${ASTERISKVERSION}"
+#define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM}
+
+END
+elif test ! -f .version ; then
+    aadkflavor=`cat .flavor`
+    cat << END
+/*
+ * version.h 
+ * Automatically generated
+ */
+#define ASTERISK_VERSION "${ASTERISKVERSION} (${aadkflavor})"
 #define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM}
 
 END




More information about the asterisk-commits mailing list