If you have not downloaded the new scripting library, it is worth doing so.  All 177 
scripts can be obtained by downloading a single file:

  http://www.rebol.com/library/library.rip  (about 110KB)

>From REBOL you can directly expand the library with the line:

  do read/binary http://www.rebol.com/library/library.rip

Run the build-lib.r script found in the library, and it will create a local HTML  
directory of all scripts.  NOTE: use the *new* build-lib.r that I just uploaded 
tonight... it provides better feedback and fixes the rebol-banner.gif problem.

For those of you who want your library files in separate directories sorted by primary 
topic, the script below will do the job.

-Carl



REBOL [
    Title: "Sort Library Files by Category"
    File:   %sort-lib-files.r
    Date:   2-Jun-2000
    Author: "Carl Sassenrath"
    Purpose: {
        Copies REBOL script library files into subdirectories under
        the primary categories.
    }
    Category: [script util file 3]
]

main-categories: [view email web net file script text util]

;-- Make directories for each main category:
foreach category main-categories [
    dir: to-file category
    if not exists? dir [make-dir dir]
]

;-- Copy files into category directories:
foreach file read %. [
    if all [
        script? file
        header: first load/header file
        in header 'category
    ][
        foreach category main-categories [
            if find header/category category [
                dir: to-file category
                print ["Copying:" dir/:file]
                write dir/:file read :file
            ]
        ]
    ]
]


Reply via email to