Skip to content

Commit 805a2c4

Browse files
committed
--exclude=.git in do-make
1 parent e16c8da commit 805a2c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

do-make

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ dir=${dir-do-make.rsync}
1111
if [ "$host$port$login$key" ]; then
1212
if [ -t 1 ]; then term=-t; else unset -v term; fi
1313
rsync -e "ssh${port:+ -p$(printf %q "${port}")}${key:+ -i$(printf %q "${key}")}" \
14-
-crz --delete --exclude={.svn,build,do-make{,.cf}} . "${login:+${login}@}${host:-localhost}:${dir}" &&
14+
-crz --delete --exclude={.{svn,git},build,do-make{,.cf}} . "${login:+${login}@}${host:-localhost}:${dir}" &&
1515
exec ssh${port:+ -p"${port}"}${key:+ -i"${key}"} ${term} "${login:+${login}@}${host:-localhost}" \
1616
"mkdir -p $(printf %q "${dir:-.}")/build &&" \
1717
exec nice "$(printf %q "${make:-make}")${dir:+ -C$(printf %q "${dir}") --no-print-directory}${params:+$(printf ' %q' "${params[@]}")}${@:+$(printf ' %q' "$@")}"
1818
else
19-
rsync -cr --delete --exclude={.svn,build,do-make{,.cf}} . "${dir:-.}" &&
19+
rsync -cr --delete --exclude={.{svn,git},build,do-make{,.cf}} . "${dir:-.}" &&
2020
mkdir -p "${dir:-.}"/build &&
2121
exec "${make:-make}"${dir:+ -C"${dir}" --no-print-directory} "${params[@]}" "$@"
2222
fi

0 commit comments

Comments
 (0)