Issue 123892 - Add script to simplify building OpenOffice from within an IDE or editor
Summary: Add script to simplify building OpenOffice from within an IDE or editor
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: 4.1.0-dev
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: Andre
Depends on:
Reported: 2013-12-20 12:39 UTC by Andre
Modified: 2013-12-20 12:40 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: Medium


Note You need to log in before you can comment on or make changes to this issue.
Description Andre 2013-12-20 12:39:57 UTC
Building OpenOffice requires several preconditions that are not trivial to fulfill from inside an editor or IDE.
These precondiations are:
   - cd to the toplevel directory of a module
   - load the OpenOffice environment as defined in main/*[sS]et[eE]
   - execute the 'build' alias defined in the same .sh file

These steps can be done by one new script that can easily be called from an external application.  One such call could look like:

/usr/bin/bash -c <source-root-path>/main/solenv/bin/ <path-to-source-file-directory> build deploy run-office

where main/solenv/bin/ would be the name of the new script,
<path-to-source-file-directory> is the path to the currently edited file from which the name of the eclosing module is derived and
build, deploy, and run-office are command names:
build - run the 'build' alias
deploy - run a yet-to-be written script that deploys updated libraries and resource files to an installed office
run-office - start the installed office