diff options
Diffstat (limited to 'compile')
-rwxr-xr-x | compile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -7,6 +7,7 @@ BASENAME="`basename $0`" DIRNAME="`dirname $0`" OUT="$DIRNAME/all.opml" +BASE_URL="https://git.fluxo.info/feeds/plain/" # Header cat <<-EOF > $OUT @@ -21,7 +22,7 @@ EOF # Contend find $DIRNAME -name '*.opml' | while read item; do name="`basename $item .opml`" - base="`dirname $item`" + base="`dirname $item | sed -e 's/^\.//'`" # Avoid recursion if [ "$name" = "all" ]; then @@ -29,7 +30,8 @@ find $DIRNAME -name '*.opml' | while read item; do fi #echo " <outline type=\"include\" url=\"${item}\" title=\"${base}/${name}\"/>" >> $OUT - echo " <outline type=\"include\" url=\"${item}\"/>" >> $OUT + #echo " <outline type=\"include\" url=\"${item}\"/>" >> $OUT + echo " <outline type=\"link\" url=\"${BASE_URL}${base}${name}.opml\"/ text=\"${base}/${name}\"/>" >> $OUT done # Footer |