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