From 6ac98c672487710b2995c41619efa65369a7edbc Mon Sep 17 00:00:00 2001
From: "Kevin P. Fleming" <kpfleming@digium.com>
Date: Thu, 19 May 2005 14:53:56 +0000
Subject: [PATCH] make version-testing and echo constructs more shell-portable
 add proper attribution to vercomp.c

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5736 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 Makefile  | 27 +++++++++++++++------------
 vercomp.c |  2 +-
 2 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/Makefile b/Makefile
index ca429fbfa6..5777b59917 100755
--- a/Makefile
+++ b/Makefile
@@ -357,22 +357,25 @@ ast_expr.a: $(FLEXOBJS)
 	ar r $@ $(FLEXOBJS)
 	ranlib $@
 
+ifeq ($(BISONVER_GE_1_85),false)
 .y.c:
-	@if (($(BISONVER_GE_1_85) = false)); then \
-		echo ================================================================================= ;\
-		echo NOTE: You may have trouble if you do not have bison-1.85 or higher installed! ;\
-		echo NOTE: You can pick up a copy at: http://ftp.gnu.org/ or its mirrors ;\
-		echo NOTE: You have: $(BISONVER) ;\
-		echo ================================================================================; \
-	fi
+	@echo "=================================================================================" ;\
+	echo "NOTE: You may have trouble if you do not have bison-1.85 or higher installed!" ;\
+	echo "NOTE: You can pick up a copy at: http://ftp.gnu.org/ or its mirrors" ;\
+	echo "NOTE: You have: $(BISONVER)" ;\
+	echo "================================================================================" ;\
 	bison -v -d --name-prefix=ast_yy $< -o $@
+else
+.y.c:
+	bison -v -d --name-prefix=ast_yy $< -o $@
+endif
 
 ast_expr.o:: ast_expr.c
-	@echo ================================================================================= ;\
-	echo NOTE: Using older version of expression parser. To use the newer version, ;\
-	echo NOTE: upgrade to flex 2.5.31 or higher, which can be found at ;\
-	echo NOTE: http://sourceforge.net/project/showfiles.php?group_id=72099 ;\
-	echo ================================================================================= ;\
+	@echo "=================================================================================" ;\
+	echo "NOTE: Using older version of expression parser. To use the newer version," ;\
+	echo "NOTE: upgrade to flex 2.5.31 or higher, which can be found at" ;\
+	echo "NOTE: http://sourceforge.net/project/showfiles.php?group_id=72099" ;\
+	echo "=================================================================================" ;\
 
 ast_expr.o:: ast_expr.c
 
diff --git a/vercomp.c b/vercomp.c
index f28e42f52e..acc32f181a 100755
--- a/vercomp.c
+++ b/vercomp.c
@@ -3,7 +3,7 @@
  *
  * A simple program version comparison tool.
  * 
- * Copyright (C) 2005, 'murf'.
+ * Copyright (C) 2005, Steven Michael Murphy (murf at e-tools dot com).
  *
  * This program is free software, distributed under the terms of
  * the GNU General Public License
-- 
GitLab