Re: news.txt file gone

Gilles Detillieux <[email protected]>
Newsgroups gmane.comp.web.htdig.devel
Message-ID <[email protected]>
According to me:
> Another way might be to do away with main.shtml and news.txt from the
> maindocs tree altogether, and just have a main.html file, as before the
> SourceForge days.  Only difference is this time, the news section in
> main.html would be between clear delimiters, and the news-get.sh script
> would use these to automatically strip out and reinsert updated news
> items from the one file.  It would recommit it only if it was different
> from yesterday's file.  The script should also have proper tests to
> ensure the newly generated file is indeed complete, to prevent the whole
> thing from getting clobbered in the event of a disk space crunch, but
> with that, it may be the best option from a maintenance point of view.
> I'm leaning towards this latter approach.

OK, I've implemented this on a trial basis.  index.html and contents.html
still point to main.shtml, with still includes news.txt.  However, I've
updated the news-get.sh script to maintain both news.txt and main.html,
so we'll see how it goes in the coming days/weeks.  If it seems solid,
we can switch index.html and contents.html over to using main.html,
and we can then get rid of main.shtml and news.txt (and take out the
part in news-get.sh that maintains the latter).

Please have a look and comment.  I'd appreciate the extra eyeballs.

-- 
Gilles R. Detillieux              E-mail: <[email protected]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
ht://Dig Developer mailing list:
[email protected]
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.