#!/usr/bin/env sh # # Compile an OPML including all other OPML files. # # Parameters BASENAME="`basename $0`" DIRNAME="`dirname $0`" OUT="$DIRNAME/all.opml" # Header cat <<-EOF > $OUT All Feeds EOF # Contend find $DIRNAME -name '*.opml' | while read item; do name="`basename $item .opml`" base="`dirname $item`" # Avoid recursion if [ "$name" = "all" ]; then continue fi #echo " " >> $OUT echo " " >> $OUT done # Footer cat <<-EOF >> $OUT EOF