From 55a780d21109511c972daf53c7885580855e5f82 Mon Sep 17 00:00:00 2001
From: Corey Farrell <git@cfware.com>
Date: Wed, 29 Apr 2015 01:02:10 -0400
Subject: [PATCH] Git Conversion: Switch Non-C files to ASTERISK_REGISTER_FILE.

This switches files used to generate other sources to use the new
ASTERISK_REGISTER_FILE macro.

ASTERISK-25026 #close
Reported by: Corey Farrell

Change-Id: Ieb2537b83421cad07c8955e5f90c405ccf079740
---
 configs/samples/extensions_minivm.conf.sample      | 2 --
 main/ast_expr2.fl                                  | 2 +-
 main/ast_expr2.y                                   | 2 +-
 res/ael/ael.flex                                   | 2 +-
 res/ael/ael.y                                      | 2 +-
 rest-api-templates/ari_model_validators.c.mustache | 2 +-
 rest-api-templates/ari_resource.c.mustache         | 2 +-
 rest-api-templates/res_ari_resource.c.mustache     | 2 +-
 8 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/configs/samples/extensions_minivm.conf.sample b/configs/samples/extensions_minivm.conf.sample
index 2f9d246370..7bd1df1d21 100644
--- a/configs/samples/extensions_minivm.conf.sample
+++ b/configs/samples/extensions_minivm.conf.sample
@@ -1,7 +1,5 @@
 ; MINI-VOICEMAIL dialplan example
 ; ---------------------------------------------------------------------------------------
-; ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-;
 ;
 ; This is an example on how to use the Mini-Voicemail system to build
 ; voicemail systems.
diff --git a/main/ast_expr2.fl b/main/ast_expr2.fl
index e10dde2005..af03c013fa 100644
--- a/main/ast_expr2.fl
+++ b/main/ast_expr2.fl
@@ -26,7 +26,7 @@
 #include <stdio.h>
 
 #if !defined(STANDALONE)
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+ASTERISK_REGISTER_FILE()
 #else
 #ifndef __USE_ISOC99
 #define __USE_ISOC99 1
diff --git a/main/ast_expr2.y b/main/ast_expr2.y
index e8c68e3330..8a151679d2 100644
--- a/main/ast_expr2.y
+++ b/main/ast_expr2.y
@@ -20,7 +20,7 @@
 
 #if !defined(STANDALONE) && !defined(STANDALONE2)	\
 	
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+ASTERISK_REGISTER_FILE()
 #else
 #ifndef __USE_ISOC99
 #define __USE_ISOC99 1
diff --git a/res/ael/ael.flex b/res/ael/ael.flex
index 5a7fd83047..a412eaf349 100644
--- a/res/ael/ael.flex
+++ b/res/ael/ael.flex
@@ -70,7 +70,7 @@
 %{
 #define WRAP_LIBC_MALLOC
 #include "asterisk.h"
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+ASTERISK_REGISTER_FILE()
 
 #include <sys/types.h>
 #include <sys/stat.h>
diff --git a/res/ael/ael.y b/res/ael/ael.y
index c1a6f0f2b9..5ab9c969f0 100644
--- a/res/ael/ael.y
+++ b/res/ael/ael.y
@@ -25,7 +25,7 @@
 #define WRAP_LIBC_MALLOC
 #include "asterisk.h"
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+ASTERISK_REGISTER_FILE()
 
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/rest-api-templates/ari_model_validators.c.mustache b/rest-api-templates/ari_model_validators.c.mustache
index 9d31671563..9603fadbf5 100644
--- a/rest-api-templates/ari_model_validators.c.mustache
+++ b/rest-api-templates/ari_model_validators.c.mustache
@@ -27,7 +27,7 @@
 
 #include "asterisk.h"
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+ASTERISK_REGISTER_FILE()
 
 #include "asterisk/logger.h"
 #include "asterisk/module.h"
diff --git a/rest-api-templates/ari_resource.c.mustache b/rest-api-templates/ari_resource.c.mustache
index e2b234240f..b8f20e6752 100644
--- a/rest-api-templates/ari_resource.c.mustache
+++ b/rest-api-templates/ari_resource.c.mustache
@@ -26,7 +26,7 @@
 
 #include "asterisk.h"
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+ASTERISK_REGISTER_FILE()
 
 #include "resource_{{c_name}}.h"
 
diff --git a/rest-api-templates/res_ari_resource.c.mustache b/rest-api-templates/res_ari_resource.c.mustache
index 896ee0d1dd..9893c97314 100644
--- a/rest-api-templates/res_ari_resource.c.mustache
+++ b/rest-api-templates/res_ari_resource.c.mustache
@@ -44,7 +44,7 @@
 
 #include "asterisk.h"
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+ASTERISK_REGISTER_FILE()
 
 #include "asterisk/app.h"
 #include "asterisk/module.h"
-- 
GitLab