mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
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
This commit is contained in:
27
Makefile
27
Makefile
@@ -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 @@
|
|||||||
*
|
*
|
||||||
* 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
|
||||||
|
|||||||
Reference in New Issue
Block a user