1 some stuff I need to incorporate later on:
3 the blog post-update git hook:
10 export GIT_WORK_TREE="$blog_dir"
14 git add metadata/author metadata/url metadata/title metadata/*.tmpl metadata/automatic_metadata captchas/linkable/*
15 count=$(ls -1 metadata/*.automatic_metadata 2>/dev/null | wc -l)
16 if [ "$count" != 0 ]; then
17 git add metadata/*.automatic_metadata
19 status=$(git status -s)
20 n_updates=$(printf "$status" | grep -vE '^\?\?' | wc -l)
21 if [ "$n_updates" -gt 0 ]; then
22 git commit -a -m 'Update metadata'