diff options
author | Gustav Eek <gustav.eek@fripost.org> | 2024-05-15 19:57:17 +0200 |
---|---|---|
committer | Gustav Eek <gustav.eek@fripost.org> | 2024-05-17 21:46:11 +0200 |
commit | d184f575fca70296a411240b5ba6ed222eeaa420 (patch) | |
tree | 542eee7eca03c0ef3f3225b952c7d8b134b1c274 /annual/2024/sync | |
parent | f43068ca50cb21c582d680f7856ead034f9abb1a (diff) |
Annual 2024. Create Makefile and sycn script
Diffstat (limited to 'annual/2024/sync')
-rwxr-xr-x | annual/2024/sync | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/annual/2024/sync b/annual/2024/sync new file mode 100755 index 0000000..da7b734 --- /dev/null +++ b/annual/2024/sync @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# Sync a set of sources with a Git repository target. Set target +# directory where the repository is found. Make sure that all pahts are +# absolute !!! + +mv ${0##*/} ${XDG_RUNTIME_DIR}/ + +TRG="$HOME/git/fripost/meetings/annual/2024" +SRC="$HOME/cloud-fripost/fripost/årsmöte" + +echo ${0##*/}: I: ${SRC} ${TRG} 1>&2 + +rsync -a --delete -P ${SRC}/ ${TRG}/ \ + | grep -iv "^sending" +git -C ${TRG} status --short --branch + +mv ${XDG_RUNTIME_DIR}/${0##*/} . |