forked from sillsdev/flashgrab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCopyFilesToAddons.sh
More file actions
15 lines (12 loc) · 898 Bytes
/
CopyFilesToAddons.sh
File metadata and controls
15 lines (12 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
# To run this script from the terminal command line: ./CopyFilesToAddons.sh
# A Linux 'build' script. Run this after editing the addon's files. Then restart Anki.
# Don't make edits over there in addons directly, as VCS won't see them, and an Anki or addon upgrade might destroy them.
# Copy recursively (-r) all modified files and folders, except the excluded ones
# (Like Anki's own deployment, this does NOT remove any files. The simplest way to do so manually here is to delete the addons folder, then re-run.)
mkdir -p ~/Anki/addons
rsync -r -u -v --exclude-from ExcludedFilesLinux.txt xml ~/Anki/addons/
rsync -r -u -v --exclude-from ExcludedFilesLinux.txt xpath ~/Anki/addons/
rsync -r -u -v --exclude-from ExcludedFilesLinux.txt distutils ~/Anki/addons/
rsync -r -u -v --exclude-from ExcludedFilesLinux.txt syncxml ~/Anki/addons/
cp -r -u -v syncx.py ~/Anki/addons/