From RTSC-Pedia

Jump to: navigation, search
revision tip
—— LANDSCAPE orientation
[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 UTC

Command - xdcdir

Print package name or repository

Contents

Synopsis

xdcdir [-t[a]] base_dir ...

where base_dir is a package's base directory.

Description

The xdcdir command prints a package's name in dot format (e.g., ti.platforms.sim62xx) or its relative repository path (e.g., ../../../) for the specified base directories.

% xdcdir .../packages/xdc/runtime
xdc.runtime
% xdcdir -t .../packages/xdc/runtime
../..
% xdcdir -ta .../packages/xdc/runtime
/home/user/xdctools_3_15_00_14/packages

This command is particularly useful in makefiles that want to avoid hard coding paths to directories that are a fixed relative position from a package's repository; changing a package's name does not require changing the makefile.

Options

-t
rather than the package's name, print the package's repository relative to the specified base directory.
-ta
print the package's repository as an absolute path.

Exit Status

The following exit values are returned:

  • 0 Successful completion.
  • > 0 An error occurred.

Error messages are output to stderr.

[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 UTC
Copyright © 2008 The Eclipse Foundation. All Rights Reserved
Views
Personal tools
package reference