diff options
Diffstat (limited to 'makerss.sh')
-rwxr-xr-x | makerss.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,8 +4,8 @@ [[ "$1" ]] && siteurl="$1" || siteurl="" [[ "$2" ]] && creator="$2" || creator="" -items=`find . -name '*.txt' ! -name 'robots.txt' ! -path '*/publications/2*' | sed -e 's/^\.//g' -e 's/\.txt$//g'` -pubs=`find ./publications -name '2*.txt' | sed -e 's/^\.//g' -e 's/\.txt$//g'` +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'` title=`head -n 1 index.txt` cat << EOF @@ -44,4 +44,4 @@ for item in $items; do EOF done; -sed -e '/^@/d' -e "s|http://njw.me.uk|${siteurl}|g" < publications/index.ttl +sed -e '/^@/d' -e "s|http://njw.me.uk|${siteurl}|g" < pubs/index.ttl |