Merged revisions 67526 via svnmerge from
[asterisk/asterisk.git] / build_tools / make_version_h
index f0e81f7..0b651ad 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
-cat << END
+if [ ! -f ../.flavor ]; then
+    cat << END
 /*
  * version.h 
  * Automatically generated
@@ -8,3 +9,17 @@ cat << END
 #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
+