2022-08-30 15:39:48 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#!nix-shell -i bash -p coreutils findutils rsync
|
2023-07-16 22:41:03 +00:00
|
|
|
# shellcheck disable=SC1008
|
2022-08-30 15:39:48 +00:00
|
|
|
|
|
|
|
current="$PWD"
|
|
|
|
src="$(realpath "$1")"
|
|
|
|
dst="$(realpath "$2")"
|
|
|
|
|
2023-07-16 22:41:03 +00:00
|
|
|
cd "$dst" || exit
|
2022-08-30 15:39:48 +00:00
|
|
|
find . -not -path './.git/*' -not -path './.git' -not -path '.' -not -path '..' -print0 | xargs -0 rm -rf
|
|
|
|
rsync -ax "$src/" ./ --exclude .git --exclude deps --exclude _build
|
|
|
|
|
|
|
|
rm -rf ./.gitlab
|
|
|
|
rm -f ./.gitlab-ci.yml
|
|
|
|
|
2023-07-16 22:41:03 +00:00
|
|
|
cd "$current" || exit
|
2023-07-28 23:37:08 +00:00
|
|
|
|
|
|
|
# vim: set ft=sh:
|