File: rsync-and-build.sh

package info (click to toggle)
calibre 8.16.2%2Bds%2B~0.10.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 446,076 kB
  • sloc: python: 456,770; cpp: 151,500; ansic: 85,816; javascript: 57,787; xml: 1,247; sh: 957; sql: 735; objc: 330; makefile: 77; sed: 3
file content (18 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# To be used via a script such as
: <<'COMMENT'
export RSYNC_PASSWORD=password
export BUILDBOT=rsync://username@server/path/to/this/directory
mkdir -p ~/calibre-src
cd ~/calibre-src || exit 1

script=rsync-and-build.sh
if [[ -e "$script" ]]; then
    . "./$script"
else
    rsync -a --include "$script" --exclude '*' "$BUILDBOT" . && source "$script"
fi
COMMENT

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" .