Hello Andrew!
In the last few years it has come in vogue create daily nodelist.
In order to accomplish this, the PUBLish has to be changed every day.
Although it is not difficult o use some form of scripting to accomplish
this, it would be more convenient if "PUBLish" TODAY could be used in the
control file. For those who want to make the file one day in advance
(before 24:00) "TOMORROW" would also be a usefull publishing day.
I have had a look at the code, and applied the following patch:
---8<------------------------------------------------------------------------
diff -r makenl_ng/makenl-code/src/config.c makenl_fg/makenl-code/src/config.c
399a400,401
> {"TODAY", 3, 7},
> {"TOMORROW", 3, 8},
798a801,810
> }
> time(&thetime);
> mytime = localtime(&thetime);
> if (NewExtWDay == 7)
> NewExtWDay = mytime->tm_wday;
> {
> }
> if (NewExtWDay == 8)
> NewExtWDay = mytime->tm_wday + 1;
> {
---8<-------------------------------------------------------------------------
When using this patch, it is of importance, that
in the files section of the controlfile wilcards are used.
Region 28 region28.* 2:28/0
If the wildcard is omitted, only files of the same publishing day will
be looked for. When not found, older files published on the same weeday wil
be used. (There is aworkaround, but that is not relevant here).
I am not completely happy with how the wild card operates. It probably sorts
the files by their suffix and uses the highest number.
How this works out at the changeover from one year to the next may be
implemented in makenl, but I am not shure.
It would suit me better if files were sorted by creation date like in
"ls -t ". If such a construct would work for all the versions that exits is
questionable.
I hope that the main users would like the above patch to be included in
the mainstream version of makenl_ng. When the keywords TODAY and TOMORROW are
not used, the code is just idle.
Kees
--- GoldED+/LNX 1.1.5
* Origin: As for me, all I know is that, I know nothing. (2:280/5003.4)
|