Commit 17684606 authored by Pekka Pessi's avatar Pekka Pessi

win32 scripts: default to mawk

darcs-hash:20070205181924-55b16-90d1c7fb65daae81fcc71e718875014d78cad39a.gz
parent 0b432955
......@@ -3,21 +3,22 @@
::
@setlocal
@if x%AWK%==x set AWK=gawk
@if x%AWK%==x set AWK=mawk
@set CHECK=@IF errorlevel 1 GOTO failed
:: Check that we really have awk
@%AWK% "{ exit(0); }" < NUL >NUL
@if not errorlevel 9009 goto have_awk
@echo *** install %AWK% (GNU awk) into your PATH ***
@echo *** install %AWK% (mawk or GNU awk) into your PATH ***
@echo *** see http://gnuwin32.sourceforge.net/packages/mawk.htm ***
@goto failed
:have_awk
@set MSG_AWK=gawk -v BINMODE=rw -f ../libsofia-sip-ua/msg/msg_parser.awk
@set MSG_AWK=%AWK% -v BINMODE=rw -f ../libsofia-sip-ua/msg/msg_parser.awk
:: in Win32 exit 0; from gawk 3.1.3 gets converted to errorlevel 1
:: If you have gawk 3.1.3 uncomment the following line
:: @set MSG_AWK=gawk -v BINMODE=rw -f ../libsofia-sip-ua/msg/msg_parser.awk success=-1
@set TAG_AWK=gawk -f ../libsofia-sip-ua/su/tag_dll.awk BINMODE=rw
:: @set MSG_AWK=%AWK% -v BINMODE=rw -f ../libsofia-sip-ua/msg/msg_parser.awk success=-1
@set TAG_AWK=%AWK% -f ../libsofia-sip-ua/su/tag_dll.awk BINMODE=rw
@set IN=../libsofia-sip-ua/msg/test_class.h
@set PR=../libsofia-sip-ua/msg/test_protos.h
......
......@@ -63,5 +63,5 @@ tests\torture_rbtree\Debug\torture_rbtree.exe
tests\torture_su_bm\Debug\torture_su_bm.exe
@if errorlevel 1 ( echo torture_su_bm: FAIL ) else echo torture_su_bm: PASS
tests\torture_su_port\Debug\torture_su_port.exe
@if errorlevel 1 ( echo torture_su_port: FAIL ) else echo torture_su_port: PASS
:: tests\torture_su_port\Debug\torture_su_port.exe
:: @if errorlevel 1 ( echo torture_su_port: FAIL ) else echo torture_su_port: PASS
......@@ -26,14 +26,15 @@
::
@setlocal
@if x%AWK%==x set AWK=gawk
@if x%AWK%==x set AWK=mawk
@set VERSION=%AWK% -v BINMODE="rw" -f version.awk
@set AC=..\configure.ac
:: Check that we really have awk
@%AWK% "{ exit(0); }" < NUL >NUL
@if not errorlevel 9009 goto have_awk
@echo *** install %AWK% (GNU awk) into your PATH ***
@echo *** install %AWK% (mawk or GNU awk) into your PATH ***
@echo *** see http://gnuwin32.sourceforge.net/packages/mawk.htm ***
@goto end
:have_awk
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment