update April 16, 2021
NAME
doc2ace.py - Create File objects for all documentation files a directory
SYNOPSIS
doc2ace.py $BIRCH/doc/dirname
doc2ace.py $BIRCH/local/doc/dirname


DESCRIPTION

This script is a shortcut way of entering information for many documentation files into a birchdb database. For each file in the target directory with one of the file extensions listed below, write a File object to the file docfiles.ace, in the target directory. docfiles.ace can be read in birchdb or lbirchdb in the Edit --> Read  .ace file menu. File objects can then be added to Program or Package objects.

The target directory dirname is the name of a directory either in $BIRCH/doc or in $BIRCH/local/doc. The safest way to run this command is to use the environment varibles, as shown in the SYNOPSIS.

Files with the following file extensions are recognized as documentation files:
EXAMPLE
If the directory $BIRCH/local/doc/staden contains the files manual_unix.pdf and overview.html, the following File objects will be written to docfiles.ace:

File : "$BIRCH\/local\/doc\/staden\/manual_unix.pdf"
Pick_me_to_call "$ACE_FILE_LAUNCHER" "$BIRCH\/local\/doc\/staden\/manual_unix.pdf"

File : "$BIRCH\/local\/doc\/staden\/overview.html"
Pick_me_to_call "$ACE_FILE_LAUNCHER" "$BIRCH\/local\/doc\/staden\/overview.html"

NOTES
  1. It is always a good idea to examine docfiles.ace in a text editor before reading it into the database. For example, you may wish to delete some File objects, or create new ones before reading this file into the database. This step can also be done in lbirchdb.
  2. In .ace files, all Unix seperator characters are escaped using the '\' character.

SEE ALSO
dat2ace.py
 
AUTHOR
Dr. Brian Fristensky
Department of Plant Science
University of Manitoba
Winnipeg, MB  Canada R3T 2N2
frist@cc.umanitoba.ca
http://home.cc.umanitoba.ca/~frist