From c34399e051bc4b584c6288c49de866588f4f2d17 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Apr 2025 15:46:48 +0530 Subject: [PATCH] Include wrapper script as comment --- rsync-and-build.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/rsync-and-build.sh b/rsync-and-build.sh index 864c7dae0..5ffc4c126 100644 --- a/rsync-and-build.sh +++ b/rsync-and-build.sh @@ -1,8 +1,17 @@ #!/bin/sh -# -# rsync-and-build.sh -# Copyright (C) 2025 Kovid Goyal -# -# Distributed under terms of the MIT license. + +# To be used via a script such as +: <<'COMMENT' +export RSYNC_PASSWORD=password +export BUILDBOT=rsync://useranme@server/path/to/this/directory +cd ~/kitty-src || exit 1 + +script=rsync-and-build.sh +if [[ -e "$script" ]]; then + source "$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 "$@"