Scripts have their upside and downside. When I downloaded OpenJDK and wanted to build it, I had to read the FAQ to see what packages are needed, how to setup minimal environment variables required to build OpenJDK and where is the master Makefile. So after some trial and error, some very useful blogs and FAQ I installed all the packages needed and build sanity passed. I want to make some modifications to the workspace, and perform regular builds. Do I set up the environment variables and run the build command every time?
To make my life easier, this is what I did (Specifically on x86 Ubuntu 7.04)
#!/bin/sh
#
# Set ALT environment variables
#
export ALT_CLOSED_JDK_IMPORT_PATH=/Projects/OpenJKD/openjdk/jdk1.7.0
export ALT_BOOTDIR=/opt/jdk1.6.0_01/
export ALT_MOTIF_DIR=/usr/OpenMotif-2.1.31
#
# Build OpenJDK
#
cd control/make
make ARCH_DATA_MODEL=32
Hope this helps someone, and if anyone has a better script that automates checking of missing packages and install them on Ubuntu along with this build script, that would be really great. Any takers?

Posted by David Herron on May 21, 2007 at 01:37 PM PDT #