From: Juergen Perlinger Date: Sun, 19 Apr 2015 10:38:34 +0000 (+0200) Subject: Fixed include file lists; improved generation of 'ntp_keyword.h' X-Git-Tag: NTP_4_3_27~1^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34aa3d0757756498fec9bc447d544a9ef12f7228;p=thirdparty%2Fntp.git Fixed include file lists; improved generation of 'ntp_keyword.h' bk: 553385aaZ0SPCNYBLjR6zYGzLZlIgA --- diff --git a/ports/winnt/vs2008/libntp/libntp.vcproj b/ports/winnt/vs2008/libntp/libntp.vcproj index ad27104d4..191cdfcf7 100644 --- a/ports/winnt/vs2008/libntp/libntp.vcproj +++ b/ports/winnt/vs2008/libntp/libntp.vcproj @@ -720,10 +720,6 @@ RelativePath="..\..\include\gaa_compat.h" > - - @@ -732,10 +728,6 @@ RelativePath="..\..\..\..\include\ieee754io.h" > - - @@ -773,7 +765,7 @@ > diff --git a/ports/winnt/vs2008/ntpd/gen-ntp_keyword.bat b/ports/winnt/vs2008/ntpd/gen-ntp_keyword.bat index 4d4f92884..908b02b4d 100644 --- a/ports/winnt/vs2008/ntpd/gen-ntp_keyword.bat +++ b/ports/winnt/vs2008/ntpd/gen-ntp_keyword.bat @@ -1,28 +1,40 @@ -@echo off +<@echo off REM gen-ntp_keyword.bat REM helper to invoke keyword-gen and possibly update ntp_keyword.h REM Usage: REM gen-ntp_keyword dir_containing_keyword-gen.exe REM -if "x%1"=="x" goto Usage + +set HDR_FILE=..\..\..\..\ntpd\ntp_keyword.h +set UTD_FILE=..\..\..\..\ntpd\keyword-gen-utd + +if "{%1}" == "{}" goto Usage if not exist "%1\keyword-gen.exe" goto ExeNotFound "%1\keyword-gen.exe" ..\..\..\..\ntpd\ntp_parser.h > new_keyword.h + +REM check if we must create both files from scratch +if not exist "%HDR_FILE%" goto createFiles +if not exist "%UTD_FILE%" goto createFiles + findstr /v diff_ignore_line new_keyword.h > new_keyword_cmp.h -findstr /v diff_ignore_line ..\..\..\..\ntpd\ntp_keyword.h > ntp_keyword_cmp.h +findstr /v diff_ignore_line "%HDR_FILE%" > ntp_keyword_cmp.h set meat_changed=0 fc /L ntp_keyword_cmp.h new_keyword_cmp.h > NUL if errorlevel 1 set meat_changed=1 del ntp_keyword_cmp.h new_keyword_cmp.h if "0"=="%meat_changed%" goto SkipUpdate -copy /y /v new_keyword.h ..\..\..\..\ntpd\ntp_keyword.h -findstr diff_ignore_line new_keyword.h > ..\..\..\..\ntpd\keyword-gen-utd + +:createFiles +copy /y /v new_keyword.h "%HDR_FILE%" > NUL +findstr diff_ignore_line new_keyword.h > "%UTD_FILE%" echo updated keyword-gen-utd and ntp_keyword.h goto SkipSkipMsg :skipUpdate echo ntp_keyword.h is unchanged -REM 'touch' the file by replacing it with a concatenation of itself and NUL: -copy /b ..\..\..\..\ntpd\ntp_keyword.h+NUL: ..\..\..\..\ntpd\ntp_keyword.h +REM 'touch' the files by replacing them with a concatenation of itself and NUL: +copy /b "%HDR_FILE%" + NUL "%HDR_FILE%" > NUL +copy /b "%UTD_FILE%" + NUL "%UTD_FILE%" > NUL :SkipSkipMsg set meat_changed= diff --git a/ports/winnt/vs2008/ntpd/ntpd.vcproj b/ports/winnt/vs2008/ntpd/ntpd.vcproj index c5689ce6f..8f2fa3bc8 100644 --- a/ports/winnt/vs2008/ntpd/ntpd.vcproj +++ b/ports/winnt/vs2008/ntpd/ntpd.vcproj @@ -453,15 +453,11 @@ > - - - - @@ -713,7 +705,7 @@ > @@ -794,7 +786,7 @@ Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" > diff --git a/ports/winnt/vs2008/ntpdate/ntpdate.vcproj b/ports/winnt/vs2008/ntpdate/ntpdate.vcproj index 847c55a17..791d78d7e 100644 --- a/ports/winnt/vs2008/ntpdate/ntpdate.vcproj +++ b/ports/winnt/vs2008/ntpdate/ntpdate.vcproj @@ -317,7 +317,7 @@ > - - - - @@ -365,7 +361,11 @@ + + + + @@ -376,21 +376,19 @@ + - - - diff --git a/ports/winnt/vs2013/libntp/libntp.vcxproj.filters b/ports/winnt/vs2013/libntp/libntp.vcxproj.filters index a30dd4400..36fe23d89 100644 --- a/ports/winnt/vs2013/libntp/libntp.vcxproj.filters +++ b/ports/winnt/vs2013/libntp/libntp.vcxproj.filters @@ -352,18 +352,12 @@ Header Files - - Header Files - Header Files Header Files - - Header Files - Header Files @@ -391,9 +385,6 @@ Header Files - - Header Files - Header Files @@ -403,15 +394,9 @@ Header Files - - Header Files - Header Files - - Header Files - Header Files @@ -514,9 +499,6 @@ Header Files - - Header Files - Header Files @@ -556,12 +538,24 @@ Header Files - - Header Files - Generated Files + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + diff --git a/ports/winnt/vs2013/ntpd/gen-ntp_keyword.bat b/ports/winnt/vs2013/ntpd/gen-ntp_keyword.bat index 4d4f92884..b56632738 100644 --- a/ports/winnt/vs2013/ntpd/gen-ntp_keyword.bat +++ b/ports/winnt/vs2013/ntpd/gen-ntp_keyword.bat @@ -4,25 +4,37 @@ REM helper to invoke keyword-gen and possibly update ntp_keyword.h REM Usage: REM gen-ntp_keyword dir_containing_keyword-gen.exe REM -if "x%1"=="x" goto Usage + +set HDR_FILE=..\..\..\..\ntpd\ntp_keyword.h +set UTD_FILE=..\..\..\..\ntpd\keyword-gen-utd + +if "{%1}" == "{}" goto Usage if not exist "%1\keyword-gen.exe" goto ExeNotFound "%1\keyword-gen.exe" ..\..\..\..\ntpd\ntp_parser.h > new_keyword.h + +REM check if we must create both files from scratch +if not exist "%HDR_FILE%" goto createFiles +if not exist "%UTD_FILE%" goto createFiles + findstr /v diff_ignore_line new_keyword.h > new_keyword_cmp.h -findstr /v diff_ignore_line ..\..\..\..\ntpd\ntp_keyword.h > ntp_keyword_cmp.h +findstr /v diff_ignore_line "%HDR_FILE%" > ntp_keyword_cmp.h set meat_changed=0 fc /L ntp_keyword_cmp.h new_keyword_cmp.h > NUL if errorlevel 1 set meat_changed=1 del ntp_keyword_cmp.h new_keyword_cmp.h if "0"=="%meat_changed%" goto SkipUpdate -copy /y /v new_keyword.h ..\..\..\..\ntpd\ntp_keyword.h -findstr diff_ignore_line new_keyword.h > ..\..\..\..\ntpd\keyword-gen-utd + +:createFiles +copy /y /v new_keyword.h "%HDR_FILE%" > NUL +findstr diff_ignore_line new_keyword.h > "%UTD_FILE%" echo updated keyword-gen-utd and ntp_keyword.h goto SkipSkipMsg :skipUpdate echo ntp_keyword.h is unchanged -REM 'touch' the file by replacing it with a concatenation of itself and NUL: -copy /b ..\..\..\..\ntpd\ntp_keyword.h+NUL: ..\..\..\..\ntpd\ntp_keyword.h +REM 'touch' the files by replacing them with a concatenation of itself and NUL: +copy /b "%HDR_FILE%" + NUL "%HDR_FILE%" > NUL +copy /b "%UTD_FILE%" + NUL "%UTD_FILE%" > NUL :SkipSkipMsg set meat_changed= diff --git a/ports/winnt/vs2013/ntpd/ntpd.vcxproj b/ports/winnt/vs2013/ntpd/ntpd.vcxproj index a88b1a8d7..d6ef87b2e 100644 --- a/ports/winnt/vs2013/ntpd/ntpd.vcxproj +++ b/ports/winnt/vs2013/ntpd/ntpd.vcxproj @@ -374,9 +374,17 @@ + + + + + + + + @@ -422,24 +430,15 @@ - - - - - - - - - diff --git a/ports/winnt/vs2013/ntpd/ntpd.vcxproj.filters b/ports/winnt/vs2013/ntpd/ntpd.vcxproj.filters index fc14e36a5..32c119309 100644 --- a/ports/winnt/vs2013/ntpd/ntpd.vcxproj.filters +++ b/ports/winnt/vs2013/ntpd/ntpd.vcxproj.filters @@ -317,15 +317,9 @@ Header Files - - Header Files - Header Files - - Header Files - Header Files @@ -341,21 +335,12 @@ Header Files - - Header Files - Header Files - - Header Files - Header Files - - Header Files - Header Files @@ -473,18 +458,12 @@ Header Files - - Header Files - Header Files Header Files - - Header Files - Header Files @@ -494,9 +473,6 @@ Header Files - - Header Files - Header Files @@ -518,7 +494,28 @@ Header Files - + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + Header Files diff --git a/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj b/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj index 2f39bdf33..ccf5debfd 100644 --- a/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj +++ b/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj @@ -242,9 +242,9 @@ + - diff --git a/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj.filters b/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj.filters index e52c61346..8eea86e57 100644 --- a/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj.filters +++ b/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj.filters @@ -26,9 +26,6 @@ Header Files - - Header Files - Header Files @@ -65,6 +62,9 @@ Header Files + + Header Files +