[LFW]

prc (database creation tool)

Get the Perl script: prc. To install, save the script as prc and create a symbolic link to it with ln -s prc pdb. Here's the help text:

% prc -h
PRC creation tool v1.0, 24 February 1997 by Ka-Ping Yee <ping@lfw.org>

usage: prc [-t <type>] -c <creator> -n <name> <resource> <resource> ...
           Creates a resource database from the binary data in the files
           listed.  If no database type is given, "appl" is assumed.  The
           first eight characters of each filename must give the type and id
           (in hex) of the corresponding resource; for example, a file named
           "tAIB03e8.bin" will be stored as resource type "tAIB" number 1000.  

       prc -x [-t <type>] [-c <creator>] [-n <name>] [<textfile>]
           Creates a resource database using the information in the text file.
           If <textfile> is "-" or not given, information is read from stdin.

For both forms, the -b and -r options turn on the "backup" and "read-only"
attributes of the new database.  The -a and -s options can be used to give
the names of files containing app-info or sort-info, and the -v option can
be used to give a version number.  The created database is written to stdout.

% pdb -h
PDB creation tool v1.0, 24 February 1997 by Ka-Ping Yee <ping@lfw.org>

usage: pdb -t <type> -c <creator> -n <name> <record> <record> ...
           Creates a record database from the binary data in the files listed.
           Files will be stored as individual records in the order given.
           The first eight characters of each filename must give the category
           (as a letter from A to O or @ for unfiled), attributes (as a single
           hex digit), and unique id (as a six-digit hex number) of the record.
           The attribute bits are 1 for a private record, 2 for a busy record,
           4 for a record to be archived, or 8 for a record to be deleted.

       pdb -x [-t <type>] [-c <creator>] [-n <name>] [<textfile>]
           Creates a record database using the information in the text file.
           If <textfile> is "-" or not given, information is read from stdin.

For both forms, the -b and -r options turn on the "backup" and "read-only"
attributes of the new database.  The -a and -s options can be used to give
the names of files containing app-info or sort-info, and the -v option can
be used to give a version number.  The created database is written to stdout.

copyright © by Ka-Ping Yee <ping@lfw.org> updated 29 December 1997