Arc Forumnew | comments | leaders | submitlogin
3 points by thaddeus 4825 days ago | link | parent

When it comes to running news I think there's only one reference to "rm" in the "load-items" function of news.arc. It removes all ".tmp" files if any are hanging around. Since load items only happens on initialization, you can just remove that line of code. You could do the same thing using whatever means you use to load the app (i.e. manually if you want or an OS script would be better).

Also the other file-operation changes that you will need to make are:

-- In ac.scm

    1. add at the top:
    (require (lib "file.ss"))

    2. add at the bottom near the other xdef's:

    (xdef 'make-directory make-directory)
    (xdef 'make-directory* make-directory*)

 -- In arc.arc change these functions to: 

    (def mkdir (path (o parents))
         (if (is parents nil)
             (make-directory path)
             (make-directory* path)))

    (def ensure-dir (path)
        (unless (dir-exists path)
             (mkdir path t)))
You could probably look up the rm operation within file.ss and add it too.

The only other one fix I think you might need to make would be to the the shash function in app.arc, which I believe is unixy.

It's been a long time since I looked so there could be other things too.