From 33d710efd825eb493459494821dda22467011973 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 26 Sep 2010 12:51:14 +0100 Subject: Merge pubs and articles to writing --- makerss.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'makerss.sh') diff --git a/makerss.sh b/makerss.sh index f387ec2..ad51847 100755 --- a/makerss.sh +++ b/makerss.sh @@ -4,8 +4,9 @@ [[ "$1" ]] && siteurl="$1" || siteurl="" [[ "$2" ]] && creator="$2" || creator="" +# TODO: rewrite items to exclude things in writing/index.ttl, and later just append the content of that items=`find . -name '*.txt' ! -name 'robots.txt' ! -path '*/pubs/2*' | sed -e 's/^\.//g' -e 's/\.txt$//g'` -pubs=`find ./pubs -name '2*.txt' | sed -e 's/^\.//g' -e 's/\.txt$//g'` +pubs=`find ./writing -name '2*.txt' | sed -e 's/^\.//g' -e 's/\.txt$//g'` title=`head -n 1 index.txt` cat << EOF @@ -43,4 +44,4 @@ for item in $items; do EOF done; -sed -e '/^@/d' -e "s|http://njw.me.uk|${siteurl}|g" < pubs/index.ttl +sed -e '/^@/d' -e "s|http://njw.me.uk|${siteurl}|g" < writing/index.ttl -- cgit v1.2.3