Skip to content
Snippets Groups Projects
Commit 6ac98c67 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

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
parent 58a530eb
No related branches found
No related tags found
No related merge requests found
...@@ -357,22 +357,25 @@ ast_expr.a: $(FLEXOBJS) ...@@ -357,22 +357,25 @@ ast_expr.a: $(FLEXOBJS)
ar r $@ $(FLEXOBJS) ar r $@ $(FLEXOBJS)
ranlib $@ ranlib $@
ifeq ($(BISONVER_GE_1_85),false)
.y.c: .y.c:
@if (($(BISONVER_GE_1_85) = false)); then \ @echo "=================================================================================" ;\
echo ================================================================================= ;\ echo "NOTE: You may have trouble if you do not have bison-1.85 or higher installed!" ;\
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 can pick up a copy at: http://ftp.gnu.org/ or its mirrors ;\ echo "NOTE: You have: $(BISONVER)" ;\
echo NOTE: You have: $(BISONVER) ;\ echo "================================================================================" ;\
echo ================================================================================; \
fi
bison -v -d --name-prefix=ast_yy $< -o $@ 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 ast_expr.o:: ast_expr.c
@echo ================================================================================= ;\ @echo "=================================================================================" ;\
echo NOTE: Using older version of expression parser. To use the newer version, ;\ 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: 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 "NOTE: http://sourceforge.net/project/showfiles.php?group_id=72099" ;\
echo ================================================================================= ;\ echo "=================================================================================" ;\
ast_expr.o:: ast_expr.c ast_expr.o:: ast_expr.c
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* A simple program version comparison tool. * 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 * This program is free software, distributed under the terms of
* the GNU General Public License * the GNU General Public License
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment