[asterisk-commits] kpfleming: branch 1.4 r56372 - /branches/1.4/build_tools/make_version_h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Feb 23 11:59:12 MST 2007


Author: kpfleming
Date: Fri Feb 23 12:59:09 2007
New Revision: 56372

URL: http://svn.digium.com/view/asterisk?view=rev&rev=56372
Log:
build special version strings for AADK/S800i builds

Modified:
    branches/1.4/build_tools/make_version_h

Modified: branches/1.4/build_tools/make_version_h
URL: http://svn.digium.com/view/asterisk/branches/1.4/build_tools/make_version_h?view=diff&rev=56372&r1=56371&r2=56372
==============================================================================
--- branches/1.4/build_tools/make_version_h (original)
+++ branches/1.4/build_tools/make_version_h Fri Feb 23 12:59:09 2007
@@ -1,5 +1,6 @@
 #!/bin/sh
-cat << END
+if [ ! -f ../.flavor ]; then
+    cat << END
 /*
  * version.h 
  * Automatically generated
@@ -8,3 +9,17 @@
 #define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM}
 
 END
+else
+    aadkver=`cat ../.version`
+    aadkflavor=`cat ../.flavor`
+    cat << END
+/*
+ * version.h 
+ * Automatically generated
+ */
+#define ASTERISK_VERSION "${ASTERISKVERSION} (${aadkflavor} ${aadkver})"
+#define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM}
+
+END
+fi
+



More information about the asterisk-commits mailing list