diff options
Diffstat (limited to 'examples/post-checkout')
-rw-r--r-- | examples/post-checkout | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/examples/post-checkout b/examples/post-checkout deleted file mode 100644 index bd4de15..0000000 --- a/examples/post-checkout +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# -# An example hook script to set metadata information using -# metastore after each checkout. - -MSFILE=".metadata" - -exit_on_fail() { - "$@" - if [ $? -ne 0 ]; then - echo "Failed to execute: $@" >&2 - exit 1 - fi -} - -if [ ! -e "$MSFILE" ]; then - echo "\"$MSFILE\" missing" >&2 - exit 1 -fi - -exit_on_fail \ - metastore -a -m -e -E -q -f "$MSFILE" - -exit 0 |