Issue #1927 - fixed CAVE rpm dependency determination

Former-commit-id: cc1a0ed662343a382f992bd43ba3b78c11cfd78b
This commit is contained in:
Bryan Kowal 2013-04-19 08:36:10 -05:00
parent 95b3e0dd4b
commit 988fbfc8ad

View file

@ -188,12 +188,22 @@ function buildFeatureRPMs()
fi
echo "feature = ${feature}"
if [ "${feature}" = "com.raytheon.uf.viz.cots.feature" ]; then
echo 'export COMPONENT_NAME="awips2-cave-viz-cots"' > \
if [ "${feature}" = "com.raytheon.uf.viz.cots.feature" ] ||
[ "${feature}" = "com.raytheon.uf.viz.base.feature" ]; then
_component_name = ""
if [ "${feature}" = "com.raytheon.uf.viz.cots.feature" ]; then
_component_name="awips2-cave-viz-cots"
fi
if [ "${feature}" = "com.raytheon.uf.viz.base.feature" ]; then
_component_name="awips2-cave-viz-base"
fi
echo 'export COMPONENT_NAME="${_component_name}"' > \
${CONST_SETUP_DIR}/feature.setup
echo 'export COMPONENT_FEATURE="${feature}"' >> \
${CONST_SETUP_DIR}/feature.setup
echo 'export COMPONENT_DESC="awips2-cave-viz-cots"' >> \
echo 'export COMPONENT_DESC="${_component_name}"' >> \
${CONST_SETUP_DIR}/feature.setup
echo 'export DOWNSTREAM_REQUIRES="awips2-common-base"' >> \
${CONST_SETUP_DIR}/feature.setup