12 Feb 2001 brlewis   » (Journeyer)

#!/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)"

Latest blog entries     Older blog entries

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!