[asterisk-dev] [Code Review] live_ast: don't set working directory in wrapper script 'asterisk'
Tzafrir Cohen
reviewboard at asterisk.org
Tue Jul 10 08:40:26 CDT 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2027/
-----------------------------------------------------------
Review request for Asterisk Developers.
Summary
-------
contrib/scripts/live_ast currently assumes that it is being run from the top-level directory of the source tree. It creates a script that will also set the working directory.
This fix avoids the need to set the working directory if the caller sets LIVE_AST_BASE_DIR instead.
It relies on realpath for that. If realpath is not available, it will fall back to the original behaviour.
Diffs
-----
/trunk/contrib/scripts/live_ast 360137
Diff: https://reviewboard.asterisk.org/r/2027/diff
Testing
-------
Thanks,
Tzafrir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120710/47bbf0d5/attachment.htm>
More information about the asterisk-dev
mailing list