~ubuntu-branches/debian/squeeze/ntp/squeeze

« back to all changes in this revision

Viewing changes to ports/winnt/scripts/mkver.bat

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2010-05-24 11:09:51 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100524110951-1o7gh469ygochf4n
Tags: 1:4.2.6.p1+dfsg-1
* New upstream version
  - They no longer ship arlib, adjust dfsg.patch.
  - Drop kfreebsd.patch, applied upstream
  - Update patches for upstream changes.
* Remove the obsolete config files:

  for ntp:
  - /etc/logcheck/ignore.d.server/ntp, removed in 1:4.2.6+dfsg-1
  - /etc/dhcp3/dhclient-enter-hooks.d/ntp, replaced by exit hooks in
    1:4.2.4p4+dfsg-3
  - /etc/network/if-up.d/ntp, removed in 1:4.2.4p0+dfsg-1

  for ntpdate:
  - /etc/dhcp3/dhclient-enter-hooks.d/ntpdate, replaced by exit hooks in
    1:4.2.4p4+dfsg-3

  Use dpkg 1.15.7.2's dpkg-maintscript-helper.  This needs
  a Pre-Depends to work, else it's never going to be removed.
  (Closes: #569530)
* Add "Depends: ${misc:Depends}" to ntp-doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#
21
21
#
22
22
# Changes:
 
23
# 12/21/2009    Dave Hart
 
24
#                               - packageinfo.sh uses prerelease= now not
 
25
#                                 releasecandidate=
23
26
# 08/28/2009    Dave Hart       
24
27
#                               - support for building using per-compiler subdirs of winnt
25
28
# 08/08/2006    Heiko Gerstung
192
195
:VER_FROM_PACKAGE_INFO
193
196
        REM Get version from packageinfo.sh file, which contains lines reading e.g.
194
197
        
195
 
        TYPE %F_PACKAGEINFO_SH% | FIND /V "rcpoint=" | FIND "point=" > point.txt
 
198
        TYPE %F_PACKAGEINFO_SH% | FIND /V "rcpoint=" | FIND /V "betapoint=" | FIND "point=" > point.txt
196
199
        SET F_POINT_SH=point.txt
197
200
        
198
201
        FOR /F "eol=# TOKENS=2 DELIMS==" %%a IN ('findstr  "proto=" %%F_PACKAGEINFO_SH%%') DO SET PROTO=%%a
200
203
        FOR /F "eol=# TOKENS=2 DELIMS==" %%a IN ('findstr  "minor=" %%F_PACKAGEINFO_SH%%') DO SET MINOR=%%a
201
204
 
202
205
        FOR /F "eol=# TOKENS=2 DELIMS==" %%a IN ('findstr  "point=" %%F_POINT_SH%%') DO SET POINT=%%a
 
206
        IF "%POINT%"=="NEW" set POINT=
203
207
        IF NOT "%POINT%"=="" set POINT=p%POINT%
204
 
        IF "%POINT%"=="NEW" set POINT=
205
208
 
 
209
        FOR /F "eol=# TOKENS=2 DELIMS==" %%a IN ('findstr  "betapoint=" %%F_PACKAGEINFO_SH%%') DO SET BETAPOINT=%%a
 
210
        
206
211
        FOR /F "eol=# TOKENS=2 DELIMS==" %%a IN ('findstr  "rcpoint=" %%F_PACKAGEINFO_SH%%') DO SET RCPOINT=%%a
207
212
 
208
213
        FOR /F "eol=# TOKENS=2 DELIMS==" %%a IN ('findstr  "special=" %%F_PACKAGEINFO_SH%%') DO SET SPECIAL=%%a
209
214
        IF NOT "%SPECIAL%"=="" set SPECIAL=-%SPECIAL%
210
215
 
211
 
        FOR /F "eol=# TOKENS=2 DELIMS==" %%a IN ('findstr  "releasecandidate=" %%F_PACKAGEINFO_SH%%') DO SET REL_CAND_STR=%%a
212
 
        IF /I "%REL_CAND_STR%"=="yes" set REL_CAND=-RC
213
 
        IF /I "%REL_CAND_STR%"=="Yes" set REL_CAND=-RC
214
 
        IF /I "%REL_CAND_STR%"=="YES" set REL_CAND=-RC
215
 
        IF /I "%REL_CAND_STR%"=="Y" set REL_CAND=-RC
216
 
        IF /I "%REL_CAND_STR%"=="y" set REL_CAND=-RC
 
216
        FOR /F "eol=# TOKENS=2 DELIMS==" %%a IN ('findstr  "prerelease=" %%F_PACKAGEINFO_SH%%') DO SET PRERELEASE=%%a
 
217
        IF /I "%PRERELEASE%"=="beta" set PR_SUF=-beta
 
218
        IF /I "%PRERELEASE%"=="rc" set PR_SUF=-RC
217
219
 
218
220
        FOR /F "eol=# TOKENS=2 DELIMS==" %%a IN ('findstr  "repotype=" %%F_PACKAGEINFO_SH%%') DO SET REPOTYPE=%%a
219
 
        IF "%REPOTYPE%"=="stable" set REPOTYPE=STABLE
220
 
        IF "%REPOTYPE%"=="Stable" set REPOTYPE=STABLE
 
221
        IF /I "%REPOTYPE%"=="stable" set REPOTYPE=STABLE
221
222
        
222
223
        IF NOT "%REPOTYPE%"=="STABLE" SET RCPOINT=
 
224
        IF "%PR_SUF%"=="-RC" set PR_POINT=%RCPOINT%
 
225
        IF "%PR_SUF%"=="-beta" set PR_POINT=%BETAPOINT%
223
226
 
224
 
        SET VER=%PROTO%.%MAJOR%.%MINOR%%POINT%%SPECIAL%%REL_CAND%%RCPOINT%
 
227
        SET VER=%PROTO%.%MAJOR%.%MINOR%%POINT%%SPECIAL%%PR_SUF%%PR_POINT%
225
228
        
226
229
        REM Now we have the version info, try to add a BK ChangeSet version number
227
230