From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6fba570549e5f5817a701cbc58695f4f@plan9.ucalgary.ca> To: 9fans@cse.psu.edu Subject: Re: [9fans] wiki's what's new? From: andrey mirtchovski In-Reply-To: <200403221520.i2MFKtac027727@adat.davidashen.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-vketxvobzxxuzzbtoxantpabbq" Date: Mon, 22 Mar 2004 09:25:14 -0700 Topicbox-Message-UUID: 3ca58e50-eacd-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-vketxvobzxxuzzbtoxantpabbq Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit > 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 --upas-vketxvobzxxuzzbtoxantpabbq Content-Disposition: attachment; filename=wikicheck Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit #!/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 --upas-vketxvobzxxuzzbtoxantpabbq--