Hello Kees!
23 Nov 17 20:52, you wrote to me:
KE> @MSGID: 2:280/5003.4 5a172ead
KE> @CHRS: LATIN-1 4
KE> @TZUTC: 0100
KE> @TID: hpt/lnx 1.4.0-sta 16-02-06
KE> Hello Andrew!
KE> In the last few years it has come in vogue create daily nodelist.
KE> In order to accomplish this, the PUBLish has to be changed
KE> every day. Although it is not difficult o use some form of scripting
KE> to accomplish this, it would be more convenient if "PUBLish" TODAY
KE> could be used in the control file. For those who want to make the file
KE> one day in advance (before 24:00) "TOMORROW" would also be a usefull
KE> publishing day.
KE> I have had a look at the code, and applied the following patch:
KE> ---8<-----------------------------------------------------------------
KE> ------- diff -r makenl_ng/makenl-code/src/config.c
KE> makenl_fg/makenl-code/src/config.c 399a400,401
>> {"TODAY", 3, 7},
>> {"TOMORROW", 3, 8},
KE> 798a801,810
>> }
>> time(&thetime);
>> mytime = localtime(&thetime);
>> if (NewExtWDay == 7)
>> NewExtWDay = mytime->tm_wday;
>> {
>> }
>> if (NewExtWDay == 8)
>> NewExtWDay = mytime->tm_wday + 1;
>> {
KE> ---8<-----------------------------------------------------------------
KE> --------
KE> When using this patch, it is of importance, that
KE> in the files section of the controlfile wilcards are used.
KE> Region 28 region28.* 2:28/0
KE> If the wildcard is omitted, only files of the same publishing day will
KE> be looked for. When not found, older files published on the same
KE> weeday wil be used. (There is aworkaround, but that is not relevant
KE> here).
KE> I am not completely happy with how the wild card operates. It probably
KE> sorts the files by their suffix and uses the highest number.
I suspect this is system dependent. Some systems match wildcards in some sort
of sorted order, but most probably just go by the order the files are
physically listed in the disk directory.
KE> How this works out at the changeover from one year to the next may be
KE> implemented in makenl, but I am not shure.
KE> It would suit me better if files were sorted by creation date like in
KE> "ls -t ". If such a construct would work for all the versions that
KE> exits is questionable.
It should be possible to implement it, but will require a significant
investment of coding and testing time to ensure that it works on all of the
platforms and compilers MakeNL currently supports.
KE> I hope that the main users would like the above patch to be included
KE> in the mainstream version of makenl_ng. When the keywords TODAY and
KE> TOMORROW are not used, the code is just idle.
I don't see a compelling reason to not include it. After all, if those
keywords are not used, the program continues to work exactly as it currently
does.
Andrew
--- GoldED+/LNX 1.1.5-b20170303
* Origin: Phoenix BBS * phoenix.bnbbbs.net (1:320/219)
|