* [9fans] wiki's what's new?
@ 2004-03-22 15:20 David Tolpin
2004-03-22 16:25 ` andrey mirtchovski
0 siblings, 1 reply; 3+ messages in thread
From: David Tolpin @ 2004-03-22 15:20 UTC (permalink / raw)
To: 9fans
what's_new/ is created with a script, isn't it? can the script be made available?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] wiki's what's new?
2004-03-22 15:20 [9fans] wiki's what's new? David Tolpin
@ 2004-03-22 16:25 ` andrey mirtchovski
2004-03-22 16:34 ` andrey mirtchovski
0 siblings, 1 reply; 3+ messages in thread
From: andrey mirtchovski @ 2004-03-22 16:25 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 188 bytes --]
> what's_new/ is created with a script, isn't it? can the script be made available?
attached.
the script was heavily modified by rog, who made it much leaner and
faster.
andrey
[-- Attachment #2: wikicheck --]
[-- Type: text/plain, Size: 670 bytes --]
#!/bin/rc
rfork n
# plan9.bell-labs is EST
cp /adm/timezone/US_Eastern /env/timezone
page='what''s_new'
# get wiki connection
test -e /srv/wiki || srv 'net!plan9.bell-labs.com!wiki' wiki || exit
mount -c /srv/wiki /mnt/wiki
cd /mnt/wiki
lastupdate=`{sed '/^D/q' < /mnt/wiki/$page/current | sed -n 's,^D,,p'}
echo last update: `{date $lastupdate}
{
echo 'What''s New'
echo D$lastupdate
echo Amirtchov@ucalgary
echo Cwiki update script
echo
echo Recently changed wiki pages:
echo
ls -ltQ */current | awk '{printf("* %s %s %s [%s\n", $7, $8, $9, $10)}' | sed 's:/current$:]:'
# commit
echo -n
} > /mnt/wiki/new
rm /srv/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] wiki's what's new?
2004-03-22 16:25 ` andrey mirtchovski
@ 2004-03-22 16:34 ` andrey mirtchovski
0 siblings, 0 replies; 3+ messages in thread
From: andrey mirtchovski @ 2004-03-22 16:34 UTC (permalink / raw)
To: 9fans
> attached.
>
that should've been 'rfork en' :)...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-22 16:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-22 15:20 [9fans] wiki's what's new? David Tolpin
2004-03-22 16:25 ` andrey mirtchovski
2004-03-22 16:34 ` andrey mirtchovski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).