aboutsummaryrefslogtreecommitdiff
path: root/compile
diff options
context:
space:
mode:
Diffstat (limited to 'compile')
-rwxr-xr-xcompile6
1 files changed, 4 insertions, 2 deletions
diff --git a/compile b/compile
index 205a42e..7182a57 100755
--- a/compile
+++ b/compile
@@ -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