function_put 

Fuego wiki

Login or create account

function put

NAME [edit section]

put

SYNOPSIS [edit section]

  • put [-r] <file1> [<file2>...] <destination>

DESCRIPTION [edit section]

The 'put' function is used to transfer directories and files to the target.

It adds a statement to the devlog, and then calls ov_transport_put.

It takes the '-r' option to allow putting items recursively. You can use wildcards in the file specifications.

EXAMPLES [edit section]

Here are some example calls

        put hello $TEST_HOME/fuego.$TESTDIR

        put {sample*,run-tests.sh}  $BOARD_TESTDIR/fuego.$TESTDIR/

        put -r XML-Test-Suite.tar tests/.libs/* tests/xmltest.sh  $BOARD_TESTDIR/fuego.$TESTDIR/;

ENVIRONMENT and ARGUMENTS [edit section]

The arguments are passed unchanged to ov_transport_put.

  • -r may be passed in the first position, to specify to recursively transfer directories and files
  • the last argument should be an destination directory on the target. The directory should be a full path (specified from the root)

RETURN [edit section]

Returns non-zero on error

SOURCE [edit section]

Located in scripts/functions.sh

SEE ALSO [edit section]

TBWiki engine 1.8.3 by Tim Bird