aboutsummaryrefslogtreecommitdiffstats
path: root/annual/2024/sync
blob: da7b73434571ed09fd30ba5dae42dea3632e7cd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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##*/} .