#!/bin/sh # Auto-generate a list of topics I've blogged about topicfile=$HOME/web/blog/newtopics.html cat << HEADEREOF >$topicfile Shallow Thoughts Archives

Shallow Thoughts Archive

Akkana's Musings on Open Source, Science, and Nature.

Shallow Thoughts Archive

This is a list of all the entries on the Shallow Thoughts blog.

The list is auto-generated: the topics are in alphabetical order, entries within topics in reverse chronological order.

I don't expect it's useful for browsing, but it's a good place to search for keywords.

HEADEREOF techdirs="linux linux/laptop linux/kernel linux/install linux/editors gimp programming tech tech/web tech/security tech/hardware science science/astro science/geology mapping conferences conferences/lca2008 conferences/lca2009" nontechdirs="nature nature/birds nature/squirrels nature/trails education humor misc photo headlines blogging writing speaking travel travel/tasmania travel/melbourne08 travel/mojave travel/southpark travel/sydney travel/anasazi politics politics/election04 politics/rights" echo "

" >>$topicfile echo "Technical categories:" >>$topicfile for dir in $techdirs ; do echo "$dir |" >>$topicfile done echo "

" >>$topicfile echo "

Non-technical categories:

" >>$topicfile for dir in $nontechdirs ; do echo "$dir |" >>$topicfile done echo "

" >>$topicfile list_dir() { # if [ $dir = '.' ] || [ $dir = './images' ]; then # continue # fi # dir=$(echo $dir | sed 's_^./__') dir="$1" echo "" >>$topicfile echo -n "$dir " echo " " >>$topicfile echo '
' >>$topicfile echo "

$dir

" >>$topicfile echo "
" >>$topicfile echo '
' >>$topicfile } echo "

Technical Topics

" >> $topicfile for dir in $techdirs ; do list_dir $dir done echo "" echo "

Non-technical Topics

" >> $topicfile for dir in $nontechdirs ; do list_dir $dir done echo "Done." #cat $HOME/web/blogfiles/foot.html >>$topicfile