Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin_make_isolated should provide setup files #327

Merged
merged 1 commit into from
Jan 25, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions python/catkin/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,29 @@ def build_workspace_isolated(
print(fmt("@{gf}@!==> @|") + cmd + "\n")
sys.exit('Command failed, exiting.')

# Provide a top level devel space environment setup script
if not merge:
target_setup = os.path.join(original_develspace, 'setup')
with open(target_setup + '.sh', 'w') as f:
f.write("""\
# Generated from catkin.builder module
. "{0}/setup.sh"
""".format(develspace))
with open(target_setup + '.bash', 'w') as f:
f.write("""\
# Generated from catkin.builder module
CATKIN_SHELL=bash
source "{0}"
""".format(target_setup + '.sh'))
with open(target_setup + '.zsh', 'w') as f:
f.write("""\
# Generated from catkin.builder module
CATKIN_SHELL=zsh
emulate sh # emulate POSIX
. "{0}"
emulate zsh # back to zsh mode
""".format(target_setup + '.sh'))


def cmake_input_changed(source_path, build_path, cmake_args=None, filename='catkin_make'):
# get current input
Expand Down