aboutsummaryrefslogtreecommitdiffstats
path: root/annual/2024/sync
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2024-06-02 11:06:00 +0200
committerGustav Eek <gustav.eek@fripost.org>2024-06-02 11:06:00 +0200
commitb520bb4d9182b5b25e8b5cb0835c9e563814b87d (patch)
tree9dbc5177a8a0782fa821fda027d69b0538ed8cc5 /annual/2024/sync
parentd1c4545c7ad65f90a6eb75dd466d48585b84f184 (diff)
parente2f3bf264f73048cdddecd7c839e4abacbaa9ee2 (diff)
Merge branch 'ge/2024-05-19-annual'HEADmaster
Diffstat (limited to 'annual/2024/sync')
-rwxr-xr-xannual/2024/sync18
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##*/} .