Older blog entries for brlewis (starting at number 1)

12 Feb 2001 (updated 13 Feb 2001 at 14:46 UTC) »
#!/bin/sh
# script to copy memo from Palm "advogato" category to diary
# Memo must be filed under "advogato" and have 1st line "diary.txt"
 
topdir=$HOME
tmphtml=$topdir/diary$$.html
 
memos -d $topdir
 
cat > $tmphtml <<EOF
<form method="POST" action="http://advogato.org/diary/post.html">
<textarea name="entry"
EOF
 
(echo ' cols=60 rows=16>' ; \
 tail +2 $topdir/[Aa]dvogato/diary.txt \
 | sed -e 's/&/\&amp;/g' -e 's/</\&lt;/g' -e 's/>/\&gt;/g') >> $tmphtml
 
cat >> $tmphtml <<EOF
</textarea>
 <p>
 <input type="submit" name=preview value="Preview">
 <input type="hidden" name=key value="-1">
</form>
EOF
 
netscape -remote "OpenFile($tmphtml)"

Actively working on BRL.

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!