awips2/rpms/awips2.ade/deploy.builder/build.sh
mjames-upc 2866fa9af2 UCAR build and install scripts, RPM specs, edex deploy, p2 build
Former-commit-id: 739d54f31d5ac3032218e30f9298001a9c3a15bd
2016-06-27 14:17:07 -05:00

30 lines
939 B
Bash
Executable file

#!/bin/bash
# This script executes all of the scripts that are responsible
# for building and packaging the ade components.
export BUILDROOT_DIR="/tmp/awips-component"
export RPM_BUILD_ROOT="${BUILDROOT_DIR}"
export UFRAME_ECLIPSE_DIR="/awips2/eclipse"
export WORKSPACE_DIR=`cd ../../../; pwd;`
if [ -d /tmp/awips-component ]; then
rm -rf /tmp/awips-component
fi
if [ -d /tmp/ade-component ]; then
rm -rf /tmp/ade-component
fi
if [ -f /usr/src/redhat/BUILD/component-files.txt ]; then
rm -f /usr/src/redhat/BUILD/component-files.txt
fi
# Build the eclipse rpm
cd ${WORKSPACE_DIR}/Installer.rpm/awips2.ade/Installer.eclipse
rpmbuild -ba --target=i386 --buildroot ${BUILDROOT_DIR} component.spec
# Build the baseline jar file
cd ${WORKSPACE_DIR}/Installer.rpm/awips2.ade/tar.baseline
./build.sh
# Create the ade tar file
cd ${WORKSPACE_DIR}/Installer.rpm/awips2.ade/tar.ade
./build.sh "${AWIPSII_VERSION}" "${AWIPSII_RELEASE}"