diff options
author | Nick White <git@njw.me.uk> | 2010-09-26 12:51:14 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-09-26 12:51:14 +0100 |
commit | 33d710efd825eb493459494821dda22467011973 (patch) | |
tree | cb4df409bf1c70941ada3866400a1e0f61b19de0 /makerss.sh | |
parent | 7a0c25eac0f1c2adf031343ff8c761ba73570cb6 (diff) | |
download | njw-website-33d710efd825eb493459494821dda22467011973.tar.bz2 njw-website-33d710efd825eb493459494821dda22467011973.zip |
Merge pubs and articles to writing
Diffstat (limited to 'makerss.sh')
-rwxr-xr-x | makerss.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |