summaryrefslogtreecommitdiff
path: root/makerss.sh
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-09-26 12:51:14 +0100
committerNick White <git@njw.me.uk>2010-09-26 12:51:14 +0100
commit33d710efd825eb493459494821dda22467011973 (patch)
treecb4df409bf1c70941ada3866400a1e0f61b19de0 /makerss.sh
parent7a0c25eac0f1c2adf031343ff8c761ba73570cb6 (diff)
downloadnjw-website-33d710efd825eb493459494821dda22467011973.tar.bz2
njw-website-33d710efd825eb493459494821dda22467011973.zip
Merge pubs and articles to writing
Diffstat (limited to 'makerss.sh')
-rwxr-xr-xmakerss.sh5
1 files changed, 3 insertions, 2 deletions
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