diff options
author | Matej Urbančič <mateju@svn.gnome.org> | 2018-05-15 21:03:11 +0200 |
---|---|---|
committer | Matej Urbančič <mateju@svn.gnome.org> | 2018-05-15 21:03:11 +0200 |
commit | 2acb520fc9b19118107916b4c89a041d1651df4d (patch) | |
tree | de915d27698f0f0ee89862dfce8c103c157df952 /build-aux/meson/update-from-gsd.sh | |
parent | 2da5fd3b3dfb4a0f2885349dad2a8e2cc063119c (diff) | |
parent | f4433b3766bab48b85ae0e42e3e704bb7f380663 (diff) | |
download | gnome-control-center-2acb520fc9b19118107916b4c89a041d1651df4d.tar.gz |
Merge branch 'master' of gitlab.gnome.org:GNOME/gnome-control-center
Diffstat (limited to 'build-aux/meson/update-from-gsd.sh')
-rwxr-xr-x | build-aux/meson/update-from-gsd.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/build-aux/meson/update-from-gsd.sh b/build-aux/meson/update-from-gsd.sh new file mode 100755 index 000000000..9f2d6b79c --- /dev/null +++ b/build-aux/meson/update-from-gsd.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +function die() { + echo $* + exit 1 +} + +if test -z "$DIR"; then + echo "Must set DIR" + exit 1 +fi + +if test -z "$FILES"; then + echo "Must set FILES" + exit 1 +fi + +for FILE in $FILES; do + if cmp -s $DIR/$FILE $FILE; then + echo "File $FILE is unchanged" + else + cp $DIR/$FILE $FILE || die "Could not move $DIR/$FILE to $FILE" + echo "Updated $FILE" + git add $FILE + fi +done |