3 # This script can be used instead of git-pull when updating a remote
4 # repo to make sure the metadata matches what is stored in the repo.
5 # It will do a git-pull, show a list of changes to be made to the metadata,
6 # and after getting confirmation, apply the changes.
12 [ "$DO_MTIME" = "yes" ] && MSFLAGS
="-m"
17 echo "Failed to execute: $@" >&2
25 if [ ! -e "$MSFILE" ]; then
26 echo "\"$MSFILE\" missing" >&2
30 echo "Going to apply the following metadata changes" >&2
32 metastore
-c $MSFLAGS -f "$MSFILE" >&2
34 printf "%s" "Ok to apply? (y/n): " >&2
38 if [ "$REPLY" != "y" ]; then
44 metastore
-a $MSFLAGS -f "$MSFILE"