| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Dailylists with makenl_ng |
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)SEEN-BY: 3/50 154/10 203/0 221/0 1 229/426 240/1120 5832 261/38 280/464 2020 SEEN-BY: 280/5003 5006 5555 292/624 854 310/31 423/120 633/267 280 712/620 848 SEEN-BY: 770/1 2320/100 @PATH: 280/5003 464 712/848 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.