awips2/rpms/awips2.ade/deploy.builder/build.sh
mjames-upc 0ff12a1d40 we're using the new awips2-static repo for large files (maps.db, shapefiles, topo, etc.) closes #54.
Conflicts:
	rpms/awips2.core/Installer.hydroapps/component.spec
	rpms/awips2.core/Installer.topo/component.spec
	rpms/unidata/buildEnvironment.sh

Former-commit-id: 8225813f75f401dde46d4c2bd00cbb99d096432e
2016-03-25 13:13:56 -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}"