[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DWN Editor team, how and what?



On Fri, May 18, 2001 at 08:04:39PM +0200, Tollef Fog Heen wrote:
> I have just set up a way so that the editor team for both previous and
> future editors of DWN will be shown properly.
> 
> The code is 
> 
> <define-tag editorname>
> <:{
>      my $path = q|<get-var WML_SRC_DIRNAME>|;
>      my ($issue, $year, $null) = split /\//, scalar reverse $path;
>      $year = reverse $year;
>      $issue = reverse $issue;
>      if ($year =~ /^\d+$/) {
> 
> 	  # This is a normal issue
>      } elsif ($issue =~/^\d+$/) {
> 	  # year/index.wml or equvalient.
> 	  $year = $issue;
> 	  $issue = 999;
>      } else {
> 	  $year = 9999;
> 	  $issue = 0;
>      }
>      
>      if (($year < 2001) or ($year >= 2001) and  ($issue >= 10)) {
> 	  print "Joe 'Zonker' Brockmeier, Jean-Christophe Helary & Tollef Fog Heen";
>      } else {
> 	  print "Joey Hess";
>      }

Err, that condition looks odd. If I got this right, you want either
  * year > 2001
or
  * year = 2001 and $issue >= 10

> }:>
> </define-tag>
> 
> And then replacing Joey Hess in /english/template/weeklynews/footer.wml.
> 
> Does this sound reasonable?

Probably...

> And does anybody have a way to get WML_SRC_REALNAME and
> WML_SRC_USERNAME set to sane values, based on which issue this is?
> (That is, before 2001-10, they should be Joey Hess and joeyh, after
> that they should be Tollef Fog Heen and tfheen.
> 
> I'd like not to do too much wizardly makefile hackery, if possible..

Do same as the above, just in makefile ;)

-- 
Digital Electronic Being Intended for Assassination and Nullification



Reply to: