[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Ouput directory other than source directory
- From: Michael McNamara <nospam@thanx>
- Date: Wed, 29 Sep 1999 08:03:15 -0700 (PDT)
Xose Manoel Ramos writes:
> El Sat, Sep 18, 1999 at 03:35:45PM +0200, David Odin contaba:
>
> >I personnaly have my wml files in ~/Giram.wml and they're output in
> >~/Giram.html using the -o switch.
> > All the gifs and jpegs are in ~/Giram.html/images and I've made a symbolic
> >links ~/Giram.wml/images that points to ~/Giram.html/images. That way wml
> >find the pictures when it looks for them and the paths are always correct.
>
> Not a bad idea, this kind of hacks can work fine. I had think before
> on this idea, using links. But I still dislike it....
>
> For me having the image files hanging arround my directory makes me
> kind of crazy, even if they are not taking any space. But the more
> files I see the more difficult I work (working under pure shell
> enviroment).
>
> I have thought in another kind of hack...
>
> # (cd ../html && wml ../wml/test.wml -o test.html )
>
> This has some problems with the `included' files, it cannot find them
> (yes, because they are in another directory). This can be solved with
> `-I' flag:
>
> # (cd ../html && wml ../wml/test.wml -o test.html -I../wml )
>
> I will work with this idea and see how it works for me.
>
> --
I have taken this further.
Basically, I have a src directory, called src, and a release
directory, called rel.
I have a Makefile, that runs wml on each .html file in the src
directory, and outputs the file to the rel directory.
the src directory has a subdir called src/img; and all these files are
copied to rel/img by the makefile -- with the twist that I use an
interlace program to reduce the size of the gifs, and to make them
interlaced so that folks can see them as they download.
So, each file that refers to a gif, refers correctly to "img/foo.gif":
this works when wml sees the file in src, and works when the file is
copied to rel, and the image is copied to rel/img.
Then I use mirror to copy the rel directory to the externally visible
web site.
This way any temp files, editor backups and the like do not find their
way to my server (they exist only in the src directory).
-mac
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com