Issue 123892

Summary: Add script to simplify building OpenOffice from within an IDE or editor
Product: Build Tools Reporter: Andre <awf.aoo>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact: Andre <awf.aoo>
Severity: Normal    
Priority: P3 CC: issues
Version: 4.1.0-dev   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: TASK Latest Confirmation in: ---
Developer Difficulty: Medium

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]nv.sh
   - 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/build-wrapper.sh <path-to-source-file-directory> build deploy run-office

where main/solenv/bin/build-wrapper.sh 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