Update of /cvsroot/popfile/windows
In directory sc8-pr-cvs1:/tmp/cvs-serv3987
Modified Files:
CBP.nsh
Log Message:
When creating buckets, include the bucket header (matching the change introduced in Bayes.pm 1.152)
Index: CBP.nsh
===================================================================
RCS file: /cvsroot/popfile/windows/CBP.nsh,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** CBP.nsh 31 May 2003 19:52:43 -0000 1.7
--- CBP.nsh 24 Jun 2003 00:12:16 -0000 1.8
***************
*** 12,15 ****
--- 12,20 ----
# This version of 'CBP.nsh' was tested using NSIS 2.0b4 (CVS)
+ !ifdef CBP.nsh_included
+ !error "$\r$\n$\r$\nFatal error: CBP.nsh has been included more than once!$\r$\n"
+ !else
+ !define CBP.nsh_included
+
#//////////////////////////////////////////////////////////////////////////////////////////////
#
***************
*** 431,435 ****
; for a "fresh" install, one where there are no corpus files, so we can simply create a
; bucket by creating a corpus directory with the same name as the bucket and putting
! ; a file called "table" there. The "table" file just has a "$\r$\n" sequence in it.
; Process only the "used" entries in the bucket list
--- 436,441 ----
; for a "fresh" install, one where there are no corpus files, so we can simply create a
; bucket by creating a corpus directory with the same name as the bucket and putting
! ; a file called "table" there. The "table" file is empty apart from the bucket header
! ; (this mimics the behaviour of Bayes.pm version 1.152)
; Process only the "used" entries in the bucket list
***************
*** 455,459 ****
CreateDirectory ${CBP_L_CORPUS}\${CBP_L_CREATE_NAME}
FileOpen ${CBP_L_FILE_HANDLE} ${CBP_L_CORPUS}\${CBP_L_CREATE_NAME}\table w
! FileWrite ${CBP_L_FILE_HANDLE} "$\r$\n"
FileClose ${CBP_L_FILE_HANDLE}
StrCmp ${CBP_L_UNC} "\\" ignore_errors
--- 461,465 ----
CreateDirectory ${CBP_L_CORPUS}\${CBP_L_CREATE_NAME}
FileOpen ${CBP_L_FILE_HANDLE} ${CBP_L_CORPUS}\${CBP_L_CREATE_NAME}\table w
! FileWrite ${CBP_L_FILE_HANDLE} "__CORPUS__ __VERSION__ 1$\r$\n"
FileClose ${CBP_L_FILE_HANDLE}
StrCmp ${CBP_L_UNC} "\\" ignore_errors
***************
*** 2105,2108 ****
--- 2111,2115 ----
!undef CBP_MAX_BN_CBOX_PLUS_ONE
+ !endif
#==============================================================================================
# End of CBP.nsh
|