# # rc.local.s10.mhonarc # maintain an HTML archive of the submissions. # # Author: Hans-Albert Schneider, Siemens AG, # # Copyright (C) Siemens AG # # Where is MHonArc? MHONARC = /usr/local/bin/mhonarc # MHonArc tries to create its lockfile this often # (ca. 3 secs interval): M2H_LOCKTRIES = 20 # Where does the HTML archive go? # html_archive=`date "+html/%Y"` # will use /html/, i.e., # /where/ever/my-cool-list/html/1999 etc. # html_archive=`date "+html/%Y/%h"` # will use /html//, # i.e., /where/ever/my-cool-list/html/1999/Jan etc. # html_archive=`date "+html/%Y/%h"` # will use /html//, # i.e., /where/ever/my-cool-list/html/1999/01 etc. # See "man date" for more possibilities. # # If you prefer a flat archive (instead of subdirectories # per year or per month or per whatever), set this to a constant # value instead of calling date, e.g. # html_archive=/home/lists/archives/mylist html_archive=`date "+html/%Y"` # If the html_archive directory does not exist, create it. # If you need to create more than one level of directories, # like /where/ever/my-cool-list/html/1999/Jan etc., replace # "mkdir" by "mkdir -p" (or "mkdirhier", or whatever does the # job on your system). # # The variable "result" is not used; it just allows us to use # the backticks to invoke a UNIX command. result=`test -d $html_archive || mkdir $html_archive` :0 c | $MHONARC -add -quiet -outdir $html_archive