sfeed_update.sh - randomcrap - random crap programs of varying quality
 (HTM) git clone git://git.codemadness.org/randomcrap
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       sfeed_update.sh (1291B)
       ---
            1 #!/bin/sh
            2 
            3 export LC_ALL=en_US.UTF-8
            4 
            5 if [ "$1" != "" ]; then
            6         sfeed_update "$1" 2> ~/.sfeed/last.2.log > ~/.sfeed/last.1.log
            7 fi
            8 
            9 sh ~/.sfeed/thisweek.sh
           10 d="$HOME/.sfeed/thisweek/"
           11 
           12 # delete files with zero filesize so they're not displayed.
           13 cd "$d" || exit 1
           14 for f in *; do
           15         test -s "$f" || rm -f "$f"
           16 done
           17 
           18 #d="$HOME/.sfeed/feeds/"
           19 w="$HOME/www_feeds/"
           20 
           21 # convert feeds.
           22 #sfeed_plain "$d"* | grep '^N' | cut -b 3- > "$w/feeds.txt"
           23 sfeed_plain "$d"* > "$w/feeds.txt"
           24 sfeed_html "$d"* > "$w/feeds.html"
           25 ~/.sfeed/atom.sh > "$w/feeds.xml"
           26 ~/.sfeed/twtxt.sh > "$w/twtxt.txt"
           27 
           28 # HTML (frames) view, but using the categories.
           29 cd "$w" || exit 1
           30 sfeed_frames "$d"*
           31 # override menu.html with categories (hack).
           32 sh ~/.sfeed/sfeed_frames_categories.sh > /home/www/domains/feeds.codemadness.org/htdocs/menu.html
           33 
           34 # gopher view, but using the categories.
           35 #sh ~/.sfeed/sfeed_gph_categories.sh > /home/www/gopher/feeds/categories.gph
           36 #sh ~/.sfeed/sfeed_gopher_categories.sh > /home/www/gopher/feeds/categories
           37 
           38 #cd /home/www/gopher/feeds/
           39 #SFEED_GPH_PATH="/feeds/" sfeed_gph "$d"*
           40 #SFEED_GOPHER_PATH="/feeds/" SFEED_GOPHER_HOST="codemadness.org" sfeed_gopher "$d"*
           41 
           42 # tail: write to pipes if sfeed_tail is running.
           43 #sh /home/hiltjo/.sfeed/tail.sh update
           44 
           45 #sh ~/.sfeed/twitter.sh > ~/www_feeds/twitter.txt