File: rsync-and-build.sh

package info (click to toggle)
kitty 0.42.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 28,564 kB
  • sloc: ansic: 82,787; python: 55,191; objc: 5,122; sh: 1,295; xml: 364; makefile: 143; javascript: 78
file content (18 lines) | stat: -rw-r--r-- 827 bytes parent folder | download
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://useranme@server/path/to/this/directory
mkdir -p ~/kitty-src
cd ~/kitty-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 --info=progress2 -a -zz --delete --force --exclude /bypy/b --exclude '*_generated.*' --exclude '*_generated_test.*' --exclude '/docs/_build' --include '/.github' --exclude '/.*' --exclude '/dependencies' --exclude '/tags' --exclude '__pycache__' --exclude '/kitty/launcher/kitt*' --exclude '/build' --exclude '/dist' --exclude '*.swp' --exclude '*.swo' --exclude '*.so' --exclude '*.dylib' --exclude '*.dSYM' "$BUILDBOT" . && exec ./dev.sh build "$@"