home *** CD-ROM | disk | FTP | other *** search
- ____ __ __ ____ ______ ____ ____
- / __ \ /_/ _/ /_ /___ \ / __ // __ \ / __ \
- / /_/ /_ _ __ ______ ______ / __/____/ // /_/ // / / // /_/ /
- / __ // \_/ \ / / / __ // ____/ / / / ____// ____// / / // __ /
- / / / // /__/ // /_ / / / // __/_ / /_ / /___ / / / /_/ // /_/ /
- /_/ /_//_/ /_//___//_/ /_//_____/ /___/ \____//_/ /_____//_____/
-
- - Aminet2PDB 1.0 -
-
- (Copyright ©1995 Cédric Souchon)
-
-
- Aminet2PDB is a CLI-only utility that allows you to create an aminet
- tree for PDBase starting from a standard Aminet INDEX file.
-
- A recent aminet tree, converted into PDBase format, is shipped in the
- distribution; it can be the starting point for you own public domain
- database.
-
-
- The argument template is:
-
- INDEX/A,PDBFILE/A,TREE/S
-
- * INDEX : Name of a standard INDEX file.
- * PDBFILE : Name of the PDBase file to create.
- * TREE : When this switch is set, the tree is printed to the standard
- output before being written to a PDBase file.
-
-
-
- Note about INDEX format:
- ~~~~~~~~~~~~~~~~~~~~~~~~
- A utility that handles text files always rises some problems, as the
- format is not as rigorous as a binary file (e.g. IFF). Here is what
- Aminet2PDB expects:
-
- First, Aminet2PDB searches for the heading of the index, which is
- series of lines begining by a '|' character. The construction of the tree
- starts right after this heading (which is compulsory), leaving away blank
- lines. The work ends when Aminet2PDB encounters the end of the file, or a
- line begining with three dashes: '---'.
-
- The format of each significant line is: a file name at the begining of
- the line WITHOUT SPACES, followed by any number of spaces, then the aminet
- path, composed with one or two directories (no more) separated by a '/'
- character. The rest of the line is not parsed, so it can contain anything.
-
- If this format is enforced, the result can be strange. Aminet2PDB
- contains as many protections as possible to keep big problems away, such
- as a software failure. It tries to detects binary files and non valid text
- files when possible. The worst thing that can happen is probably a
- surprising result (strange categories in PDBase). Most of the time,
- Aminet2PDB will tell you that the conversion went wrong when encountering
- a non valid INDEX. Nevertheless, please keep non INDEX files away from
- Aminet2PDB.
-
- Aminet2PDB can parse all forms of INDEX I know about, from the complete
- INDEX to daily or weekly INDEX posted on the net. In that last case,
- Aminet2PDB easily gets rid of net headers and signature at the bottom of
- the file (provided that the signature is preceded by three dashes at the
- begining ot the line: '---').
-
-