| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | # To be used via a script such as |
| 4 | : <<'COMMENT' |
| 5 | export RSYNC_PASSWORD=password |
| 6 | export BUILDBOT=rsync://username@server/path/to/this/directory |
| 7 | mkdir -p ~/calibre-src |
| 8 | cd ~/calibre-src || exit 1 |
| 9 | |
| 10 | script=rsync-and-build.sh |
| 11 | if [[ -e "$script" ]]; then |
| 12 | . "./$script" |
| 13 | else |
| 14 | rsync -a --include "$script" --exclude '*' "$BUILDBOT" . && source "$script" |
| 15 | fi |
| 16 | COMMENT |
| 17 | |
| 18 | rsyncscip-shell system . . rsync. -a --delete --force --exclude bypy/b --exclude src/calibre/plugins --exclude manual --exclude ".*cache" --exclude .git --exclude build --exclude dist --exclude "*.pyj-cached" --exclude "*.pyc" --exclude "*.pyo" --exclude "*.swp" --exclude "*.swo" --exclude format_docs "$BUILDBOT" . |