Project

General

Profile

« Previous | Next » 

Revision 10015

lib/sh/sync.sh: upload(): documented that each --include path is relative to the currdir, not the root dir of the upload ($local_dir). this feature, although previously unintended, is actually better because the user can change to a subdir of the root dir and specify upload paths relative to the dir they are in. however, when invoking upload() from a script with --include paths specified, this means you need to use an absolute path (e.g. "$(dirname "${BASH_SOURCE0}")"/...; or the value that will become $local_dir, which for sync_upload() is $root_dir).

View differences:

lib/sh/sync.sh
7 7

  
8 8
upload() #usage: local_dir=... remote_url=serv:dir [swap=1] upload [opt|path]...
9 9
# swap: downloads instead of uploads
10
# path: relative to *currdir*, not $local_dir. when invoking from a script, use
11
#     an absolute path (e.g. "$(dirname "${BASH_SOURCE[0]}")"/...).
10 12
# requires put from https://uutils.googlecode.com/svn/trunk/bin/put
11 13
{
12 14
	echo_func; kw_params local_dir remote_url; echo_vars swap

Also available in: Unified diff