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