After manually building BBDB many times it was time to try to write a
make.bat for those who like me are in the make-less world.  Cygwin is
unfortunately not an option yet.

The problem is that I really don't know much about bat files or how BBDB
is being built in recent versions, so the outcome is very crude.  It was
also only tested in my configuration (emacs 20.6 + gnus).  Improvements,
comments etc. are welcome.

I don't know if the lisp warning should be there or what to do with the
lisp errors.  BBDB is working but I only use a limited functionality.

The info build problem also occurs when trying to build on line.  I
don't know how to proceed with this.


,----[ Lines 171-181 of bbdb.texinfo ]
| * The Future::                  Known Bugs, the TODO list and EOL statements
| * Thanks::                    to the Ministry of Bugs
| 
| * Concept Index::             Concept Index
| * Variable Index::            Variable Index
| 
| @detailmenu --- The Detailed Node Listing ---
---------------^
| 
| Installation
| 
| * General Prerequisites::       General @b{BBDB} requirements
| 
| File Installation
`----

make.bat.txt

d:\Yair\emacs\bbdb>make.bat d:\emacs-20.6
make.bat d:\emacs-20.6

d:\Yair\emacs\bbdb>rem Written by Yair Friedman ([EMAIL PROTECTED]) 

d:\Yair\emacs\bbdb>rem Based upon the gnus make.bat by David Charlap 
([EMAIL PROTECTED]) 

d:\Yair\emacs\bbdb>rem

d:\Yair\emacs\bbdb>rem There are two possible problems with this batch file.  The 
emacs.bat batch 

d:\Yair\emacs\bbdb>rem file may not exist in all distributions.  It is part of the GNU 
build of 

d:\Yair\emacs\bbdb>rem Emacs 20.4 
(http://www.gnu.org/softare/emacs/windows.ntemacs.html)  If you 

d:\Yair\emacs\bbdb>rem install BBDB with some other build, you may have to replace 
calls to 

d:\Yair\emacs\bbdb>rem d:\emacs-20.6\emacs.bat with something else. 

d:\Yair\emacs\bbdb>rem  

d:\Yair\emacs\bbdb>rem Also, the emacs.bat file that comes with Emacs does not accept 
more than 9 

d:\Yair\emacs\bbdb>rem parameters, so the attempts to compile the .texi files will 
fail.  To 

d:\Yair\emacs\bbdb>rem fix that (at least on NT.  I don't know about Win95), the 
following 

d:\Yair\emacs\bbdb>rem change should be made to emacs.bat: 

d:\Yair\emacs\bbdb>rem  

d:\Yair\emacs\bbdb>rem     D:/emacs-20.6\bin\emacs.exe d:\emacs-20.6         

d:\Yair\emacs\bbdb>rem  

d:\Yair\emacs\bbdb>rem should become 

d:\Yair\emacs\bbdb>rem  

d:\Yair\emacs\bbdb>rem     D:/emacs-20.6\bin\emacs.exe  d:\emacs-20.6 

d:\Yair\emacs\bbdb>rem  

d:\Yair\emacs\bbdb>rem which will allow the batch file to accept an unlimited number 
of 

d:\Yair\emacs\bbdb>rem parameters. 

d:\Yair\emacs\bbdb>rem For the meaning of these look at the Makefile. 

d:\Yair\emacs\bbdb>rem Notice that you have to double any backslashes in the path. 

d:\Yair\emacs\bbdb>set GNUSDIR=D:\\Yair\\emacs\\gnus 

d:\Yair\emacs\bbdb>set MHEDIR=  

d:\Yair\emacs\bbdb>set VMDIR=  

d:\Yair\emacs\bbdb>set OTHERDIR= 

d:\Yair\emacs\bbdb>rem give it any value if you want to use rmail with bbdb 

d:\Yair\emacs\bbdb>set RMAIL= 

d:\Yair\emacs\bbdb>rem This is where you bbdb lisp is going 

d:\Yair\emacs\bbdb>set BBDBDIR=D:\\Yair\\emacs\\bbdb\\lisp 

d:\Yair\emacs\bbdb>rem Clear PWD so emacs doesn't get confused 

d:\Yair\emacs\bbdb>set BBDB_PWD_SAVE= 

d:\Yair\emacs\bbdb>set PWD= 

d:\Yair\emacs\bbdb>if "d:\emacs-20.6" == "" goto usage 

d:\Yair\emacs\bbdb>rem Emacs 20.7 no longer includes emacs.bat. Use emacs.exe if the 
batch file is 

d:\Yair\emacs\bbdb>rem not present -- this also fixes the problem about too many 
parameters on Win9x. 

d:\Yair\emacs\bbdb>set emacs=emacs.exe 

d:\Yair\emacs\bbdb>if exist d:\emacs-20.6\bin\emacs.bat set emacs=emacs.bat 

d:\Yair\emacs\bbdb>set VM=-eval "(progn (if (not (string-match \" \" \"\")) (setq 
load-path (cons \" \" load-path))) (if (load \"vm-version\" t) (cond ((> 
(string-to-number vm-version) 5.31) (load \"vm\")) (t (load \"vm-vars\") (load 
\"vm\")))))" 

d:\Yair\emacs\bbdb>set GNUS=-eval "(if (not (string-match \"D:\\Yair\\emacs\\gnus\" 
\"\")) (setq load-path (cons \"D:\\Yair\\emacs\\gnus\" load-path)))" 

d:\Yair\emacs\bbdb>set MHE=-eval "(progn (if (not (string-match \" \" \"\")) (setq 
load-path (cons \" \" load-path))) (load \"mh-e\"))" 

d:\Yair\emacs\bbdb>set PUSHPATH=-eval "(setq load-path (delete \"\" (append (list 
\".\" \"\") load-path)))" 

d:\Yair\emacs\bbdb>cd lisp 

D:\YAIR\emacs\bbdb\lisp>call d:\emacs-20.6\bin\emacs.exe -batch -q -no-site-file -f 
batch-byte-compile ./bbdb.el 
While compiling bbdb-format-record in file d:/YAIR/emacs/bbdb/lisp/bbdb.el:
  ** reference to free variable bbdb-pop-up-elided-display-name-end
  ** reference to free variable bbdb-pop-up-elided-display-fields
While compiling bbdb-insinuate-message:
  ** reference to free variable message-mode-map
While compiling the end of the data:
  ** The following functions are not known to be defined: caddr,
    bbdb-migration-query, bbdb-migrate, bbdb-migrate-rewrite-all,
    bbdb-migrate-update-file-version, bbdb-unmigrate-record,
    bbdb-redisplay-records, y-or-n-p-with-timeout, set-keymap-prompt
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb.elc
Done

D:\YAIR\emacs\bbdb\lisp>call d:\emacs-20.6\bin\emacs.exe -batch -q -no-site-file -eval 
"(setq load-path (delete \"\" (append (list \".\" \"\") load-path)))" -l ./bbdb.elc -f 
batch-byte-compile bbdb-com.el bbdb-hooks.el bbdb-print.el bbdb-ftp.el bbdb-whois.el 
bbdb-srv.el bbdb-reportmail.el bbdb-snarf.el bbdb-w3.el bbdb-sc.el bbdb-merge.el 
bbdb-migrate.el 
While compiling bbdb-complete-name in file d:/YAIR/emacs/bbdb/lisp/bbdb-com.el:
  ** auto-fill-hook is an obsolete variable; use auto-fill-function instead.
  ** reference to free variable auto-fill-hook
While compiling the end of the data:
  ** The following functions are not known to be defined: display-error,
    mh-send, vm-session-initialization, vm-mail-internal,
    bbdb-header-start, bbdb-extract-field-value, extent-string,
    bbdb-extract-address-components, mail-abbrev-expand-hook,
    Info-goto-node
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-com.elc
While compiling bbdb-header-start in file d:/YAIR/emacs/bbdb/lisp/bbdb-hooks.el:
  ** reference to free variable vm-mail-buffer
  ** reference to free variable vm-message-pointer
  ** reference to free variable rmail-buffer
  ** reference to free variable gnus-article-buffer
  ** reference to free variable mh-show-buffer
While compiling the end of the data:
  ** The following functions are not known to be defined: vm-start-of,
    mh-show
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-hooks.elc
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-print.elc
While compiling the end of the data in file d:/YAIR/emacs/bbdb/lisp/bbdb-ftp.el:
  ** the function display-error is not known to be defined.
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-ftp.elc
While compiling bbdb-whois in file d:/YAIR/emacs/bbdb/lisp/bbdb-whois.el:
  ** reference to free variable bbdb-whois-name
While compiling bbdb-whois-sentinel:
  ** reference to free variable bbdb-whois-record
  ** reference to free variable bbdb-whois-name
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-whois.elc
While compiling toplevel forms in file d:/YAIR/emacs/bbdb/lisp/bbdb-srv.el:
  !! File error (("Cannot open load file" "gnuserv"))
While compiling toplevel forms in file d:/YAIR/emacs/bbdb/lisp/bbdb-reportmail.el:
  !! File error (("Cannot open load file" "reportmail"))
While compiling the end of the data in file d:/YAIR/emacs/bbdb/lisp/bbdb-snarf.el:
  ** the function replace-in-string is not known to be defined.
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-snarf.elc
While compiling bbdb-insinuate-w3 in file d:/YAIR/emacs/bbdb/lisp/bbdb-w3.el:
  ** reference to free variable w3-mode-map
While compiling the end of the data:
  ** the function url-view-url is not known to be defined.
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-w3.elc
While compiling bbdb-insinuate-sc in file d:/YAIR/emacs/bbdb/lisp/bbdb-sc.el:
  ** reference to free variable attribution
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-sc.elc
While compiling bbdb-merge-file in file d:/YAIR/emacs/bbdb/lisp/bbdb-merge.el:
  ** reference to free variable r
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-merge.elc
While compiling bbdb-unmigrate-zip-codes-to-strings in file 
d:/YAIR/emacs/bbdb/lisp/bbdb-migrate.el:
  ** reference to free variable string
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-migrate.elc
Done

D:\YAIR\emacs\bbdb\lisp>if "RMAIL" == "" goto afterrmail 

D:\YAIR\emacs\bbdb\lisp>call d:\emacs-20.6\bin\emacs.exe -batch -q -no-site-file -eval 
"(setq load-path (delete \"\" (append (list \".\" \"\") load-path)))" -l ./bbdb.elc -f 
batch-byte-compile bbdb-rmail.el 
While compiling bbdb/rmail-pop-up-bbdb-buffer in file 
d:/YAIR/emacs/bbdb/lisp/bbdb-rmail.el:
  ** reference to free variable bbdb-pop-up-elided-display
While compiling bbdb-insinuate-rmail:
  ** reference to free variable rmail-summary-mode-map
While compiling the end of the data:
  ** The following functions are not known to be defined:
    bbdb-record-edit-property, bbdb-record-edit-notes,
    bbdb-orig-rmail-expunge, bbdb-orig-undigestify-rmail-message
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-rmail.elc
Done

D:\YAIR\emacs\bbdb\lisp>if "GNUSDIR" == "" goto aftergnus 

D:\YAIR\emacs\bbdb\lisp>call d:\emacs-20.6\bin\emacs.exe -batch -q -no-site-file -eval 
"(setq load-path (delete \"\" (append (list \".\" \"\") load-path)))" -l ./bbdb.elc 
-eval "(if (not (string-match \"D:\\Yair\\emacs\\gnus\" \"\")) (setq load-path (cons 
\"D:\\Yair\\emacs\\gnus\" load-path)))" -f batch-byte-compile bbdb-gnus.el 
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-gnus.elc
Done

D:\YAIR\emacs\bbdb\lisp>if "VMDIR" == "" goto aftervm 

D:\YAIR\emacs\bbdb\lisp>call d:\emacs-20.6\bin\emacs.exe -batch -q -no-site-file -eval 
"(setq load-path (delete \"\" (append (list \".\" \"\") load-path)))" -l ./bbdb.elc 
-eval "(progn (if (not (string-match \" \" \"\")) (setq load-path (cons \" \" 
load-path))) (if (load \"vm-version\" t) (cond ((> (string-to-number vm-version) 5.31) 
(load \"vm\")) (t (load \"vm-vars\") (load \"vm\")))))" -f batch-byte-compile 
bbdb-vm.el 
While compiling toplevel forms in file d:/YAIR/emacs/bbdb/lisp/bbdb-vm.el:
  !! File error (("Cannot open load file" "vm-autoload"))
Done

D:\YAIR\emacs\bbdb\lisp>if "MHEDIR" == "" goto aftermhe 

D:\YAIR\emacs\bbdb\lisp>call d:\emacs-20.6\bin\emacs.exe -batch -q -no-site-file -eval 
"(setq load-path (delete \"\" (append (list \".\" \"\") load-path)))" -l ./bbdb.elc 
-eval "(progn (if (not (string-match \" \" \"\")) (setq load-path (cons \" \" 
load-path))) (load \"mh-e\"))" -f batch-byte-compile bbdb-mhe.el 
Loading mh-e...
While compiling bbdb/mh-pop-up-bbdb-buffer in file d:/YAIR/emacs/bbdb/lisp/bbdb-mhe.el:
  ** reference to free variable bbdb-pop-up-elided-display
While compiling the end of the data:
  ** The following functions are not known to be defined:
    mail-strip-quoted-names, bbdb-record-edit-property,
    bbdb-record-edit-notes
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-mhe.elc
Done

D:\YAIR\emacs\bbdb\lisp>echo  1>bbdb-autoloads.el 

D:\YAIR\emacs\bbdb\lisp>call d:\emacs-20.6\bin\emacs.exe -batch -q -no-site-file -l 
autoload -eval "(setq generated-autoload-file 
\"D:\\Yair\\emacs\\bbdb\\lisp\\bbdb-autoloads.el\")" -eval "(setq make-backup-files 
nil)" -eval "(setq autoload-package-name \"bbdb\")" -f batch-update-autoloads 
D:\\Yair\\emacs\\bbdb\\lisp 
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-com.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-com.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-ftp.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-ftp.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-gnus.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-gnus.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-hooks.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-hooks.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-merge.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-merge.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-mhe.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-mhe.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-migrate.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-migrate.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-print.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-print.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-reportmail.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-reportmail.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-rmail.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-rmail.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-sc.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-sc.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-snarf.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-snarf.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-srv.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-srv.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-vm.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-vm.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-w3.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-w3.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-whois.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-whois.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-xemacs.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb-xemacs.el...done
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb.el...
Generating autoloads for d:/Yair//emacs//bbdb//lisp/bbdb.el...done
Wrote d:/Yair/emacs/bbdb/lisp/bbdb-autoloads.el

D:\YAIR\emacs\bbdb\lisp>call d:\emacs-20.6\bin\emacs.exe -batch -q -no-site-file -f 
batch-byte-compile bbdb-autoloads.el 
Wrote d:/YAIR/emacs/bbdb/lisp/bbdb-autoloads.elc
Done

D:\YAIR\emacs\bbdb\lisp>if not "" == "copy" goto info 

D:\YAIR\emacs\bbdb\lisp>set EMACSINFOHACK="(while (re-search-forward \"@\\(end 
\\)?ifnottex\" nil t) (replace-match \"\"))" 

D:\YAIR\emacs\bbdb\lisp>cd ..\texinfo 

D:\YAIR\emacs\bbdb\texinfo>call d:\emacs-20.6\bin\emacs.exe -batch -q -no-site-file 
bbdb.texinfo -eval "(while (re-search-forward \"@\\(end \\)?ifnottex\" nil t) 
(replace-match \"\"))" -eval "(setq max-lisp-eval-depth 600)" -f 
texinfo-every-node-update -f texinfo-format-buffer -f save-buffer 
Updating node: Top ... 
Updating node: Installation ... 
Updating node: General Prerequisites ... 
Updating node: Normal User ... 
Updating node: XEmacs Package ... 
Updating node: Initial Configuration ... 
Updating node: Gnus Prep ... 
Updating node: MH-E Prep ... 
Updating node: RMAIL Prep ... 
Updating node: Sendmail Prep ... 
Updating node: VM Prep ... 
Updating node: Message Prep ... 
Updating node: Reportmail Prep ... 
Updating node: Supercite Prep ... 
Updating node: Web Browser Prep ... 
Updating node: The BBDB ... 
Updating node: Database Fields ... 
Updating node: Basic Searching ... 
Updating node: Advanced Searching ... 
Updating node: Manual Record Addition ... 
Updating node: BBDB Mode ... 
Updating node: Interfaces ... 
Updating node: Mail Reading Interfaces ... 
Updating node: News Reading Interfaces ... 
Updating node: Mail Sending Interfaces ... 
Updating node: Reader-specific Features ... 
Updating node: Gnus Features ... 
Updating node: Gnus Scoring ... 
Updating node: Gnus Summary Buffer ... 
Updating node: GNUS Subject List ... 
Updating node: VM Features ... 
Updating node: VM Message Summary ... 
Updating node: VM what records are displayed ... 
Updating node: VM automatic setup of vm-set-auto-folder-alist ... 
Updating node: VM snarfing all email addresses ... 
Updating node: VM automatic adding of labels ... 
Updating node: Other Packages ... 
Updating node: Using Message Mode ... 
Updating node: Using Reportmail ... 
Updating node: Using Supercite ... 
Updating node: Using Web Browsers ... 
Updating node: Options ... 
Updating node: Customization Parameters ... 
Updating node: Customization Hooks ... 
Updating node: Predefined Hooks ... 
Updating node: Utilities ... 
Updating node: bbdb-ftp ... 
Updating node: bbdb-print ... 
Updating node: bbdb-snarf ... 
Updating node: bbdb-srv ... 
Updating node: Internals ... 
Updating node: Mailing Lists ... 
Updating node: Changes ... 
Updating node: Major Changes ... 
Updating node: Other Changes ... 
Updating node: The Latest Version ... 
Updating node: The Future ... 
Updating node: Known Bugs ... 
Updating node: TODO List ... 
Updating node: EOL Statements ... 
Updating node: Thanks ... 
Updating node: _ ... 
Updating node: Concept Index ... 
Updating node: Variable Index ... 
Done...nodes updated in region.  You may save the buffer.
Done...updated every node.       You may save the buffer.
Formatting Info file...
Formatting Info file: bbdb.info
Converting bbdb.texinfo to Info format...
Formatting: BBDB ... 
Extraneous text at end of command line.

D:\YAIR\emacs\bbdb\texinfo>if not "" == "copy" goto done 

D:\YAIR\emacs\bbdb\texinfo>cd .. 

D:\YAIR\emacs\bbdb>goto end 

D:\YAIR\emacs\bbdb>

Reply via email to