Aldonas alŝutan skripton
This commit is contained in:
parent
976c913137
commit
53c049c055
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
RSYNC_DRYRUN="--dry-run"
|
||||||
|
if test "$1" = "--real"; then
|
||||||
|
RSYNC_DRYRUN=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
rsync $RSYNC_DRYRUN --verbose --recursive static/ $(whoami)@xwx.moe:/opt/weblate/data/cache/static/
|
||||||
|
rsync $RSYNC_DRYRUN --verbose --recursive --archive --delete x_x/ $(whoami)@xwx.moe:/opt/weblate/data/cache/static/x_x/
|
||||||
|
rsync $RSYNC_DRYRUN --verbose --recursive --archive templates/ $(whoami)@xwx.moe:/opt/weblate/env/lib/python3.12/site-packages/weblate/templates/
|
||||||
|
|
||||||
|
if test "$RSYNC_DRYRUN" = "--dry-run"; then
|
||||||
|
echo "=================================================="
|
||||||
|
echo "Ran in --dry-run mode!"
|
||||||
|
echo "Try '$(basename "$0") --real' if the output seems OK."
|
||||||
|
echo "=================================================="
|
||||||
|
fi
|
Ŝarĝante…
Reference in New Issue