diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-12-14 22:38:15 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-12-14 22:38:15 +0200 |
| commit | 8b624ffc49de7e8d94dcaeef171d52543b5cd7c9 (patch) | |
| tree | 1a56ae12c2c98e2bdca9ac653640f27c96e21ca4 /build.ant | |
| parent | 86de2ba2b7c5a1b37c328a7fa2e88cad6af87255 (diff) | |
rsync macro doc
Diffstat (limited to 'build.ant')
| -rw-r--r-- | build.ant | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -3,20 +3,21 @@ --> <project name="rhizi-server" default="pkg-deb"> - <macrodef name="rsync"> - <attribute name="src" /> - <attribute name="dst" /> - <sequential> - <exec dir="${basedir}" executable="/usr/bin/rsync"> - <arg value="-avz" /> - <arg value="@{src}" /> - <arg value="@{dst}" /> +<macrodef name="rsync"> + <attribute name="src" /> + <attribute name="dst" /> + <attribute name="extraOpts" default="" /> + <sequential> + <exec dir="${basedir}" executable="/usr/bin/rsync" > + <arg value="@{src}" /> + <arg value="@{dst}" /> - <env key="RSYNC_CONNECT_PROG" - value="ssh root@%H nc 127.0.0.1 873" /> - </exec> - </sequential> - </macrodef> + <!-- note: RSYNC_CONNECT_PROG has not effect when dst is local dir path --> + <env key="RSYNC_CONNECT_PROG" + value="ssh root@%H nc 127.0.0.1 873" /> + </exec> + </sequential> +</macrodef> <property name="pkg_name" value="rhizi-server" /> <property name="pkg_version" value="0.1.0" /> |
