Issue #2520 - Update rpm query calls
Change-Id: I2fc1ac0fa8b9e199149fd2db3ab25bac9ba90024 Former-commit-id:62324b5194
[formerly62324b5194
[formerly 95c604d179e14d110e0782a5a911f8b6d5104941]] Former-commit-id:b078f57dc7
Former-commit-id:f125f963b3
This commit is contained in:
parent
25ffcdf751
commit
2c581c0c73
9 changed files with 11 additions and 11 deletions
|
@ -31,6 +31,6 @@ if [ ${RC} -ne 0 ]; then
|
||||||
echo "Unable To Continue ... Terminating."
|
echo "Unable To Continue ... Terminating."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
JAVA_INSTALL=`rpm -q --queryformat '%{INSTALLPREFIX}' awips2-java`
|
JAVA_INSTALL=`rpm -q --queryformat '%{INSTPREFIXES}' awips2-java`
|
||||||
|
|
||||||
${JAVA_INSTALL}/bin/java -classpath $awips_home/edex/lib/plugins/plugin-warning.jar:$awips_home/edex/lib/dependencies/org.geotools/jts-1.9.jar com.raytheon.edex.plugin.warning.tools.DamInfoTranslator $@
|
${JAVA_INSTALL}/bin/java -classpath $awips_home/edex/lib/plugins/plugin-warning.jar:$awips_home/edex/lib/dependencies/org.geotools/jts-1.9.jar com.raytheon.edex.plugin.warning.tools.DamInfoTranslator $@
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Name: awips2-ant
|
Name: awips2-ant
|
||||||
Summary: AWIPS II Ant Distribution
|
Summary: AWIPS II Ant Distribution
|
||||||
Version: 1.7.1
|
Version: 1.7.1
|
||||||
Release: 2
|
Release: 3
|
||||||
Group: AWIPSII
|
Group: AWIPSII
|
||||||
BuildRoot: /tmp
|
BuildRoot: /tmp
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
@ -153,4 +153,4 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||||
/awips2/ant/licenses
|
/awips2/ant/licenses
|
||||||
%doc /awips2/ant/NOTICE
|
%doc /awips2/ant/NOTICE
|
||||||
%doc /awips2/ant/README
|
%doc /awips2/ant/README
|
||||||
%doc /awips2/ant/WHATSNEW
|
%doc /awips2/ant/WHATSNEW
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/csh
|
#!/bin/csh
|
||||||
|
|
||||||
# Determine where ant has been installed.
|
# Determine where ant has been installed.
|
||||||
set ANT_INSTALL=`rpm -q --queryformat '%{INSTALLPREFIX}' awips2-ant`
|
set ANT_INSTALL=`rpm -q --queryformat '%{INSTPREFIXES}' awips2-ant`
|
||||||
setenv ANT_HOME "${ANT_INSTALL}"
|
setenv ANT_HOME "${ANT_INSTALL}"
|
||||||
|
|
||||||
if $?PATH then
|
if $?PATH then
|
||||||
|
|
|
@ -8,7 +8,7 @@ if [ ${RC} -ne 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Determine Where Ant Has Been Installed.
|
# Determine Where Ant Has Been Installed.
|
||||||
ANT_INSTALL=`rpm -q --queryformat '%{INSTALLPREFIX}' awips2-ant`
|
ANT_INSTALL=`rpm -q --queryformat '%{INSTPREFIXES}' awips2-ant`
|
||||||
if [ "${ANT_INSTALL}" = "" ]; then
|
if [ "${ANT_INSTALL}" = "" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -6,7 +6,7 @@ set RC="$?"
|
||||||
|
|
||||||
#if installed, set the variable
|
#if installed, set the variable
|
||||||
if ( "${RC}" == "0" ) then
|
if ( "${RC}" == "0" ) then
|
||||||
set CLI_INSTALL=`rpm -q --queryformat '%{INSTALLPREFIX}' awips2-cli`
|
set CLI_INSTALL=`rpm -q --queryformat '%{INSTPREFIXES}' awips2-cli`
|
||||||
#if check CLI_INSTALL is set, set it in the path
|
#if check CLI_INSTALL is set, set it in the path
|
||||||
if ( "${CLI_INSTALL}" != "" ) then
|
if ( "${CLI_INSTALL}" != "" ) then
|
||||||
setenv PATH ${CLI_INSTALL}/bin:${PATH}
|
setenv PATH ${CLI_INSTALL}/bin:${PATH}
|
||||||
|
|
|
@ -9,7 +9,7 @@ if [ ! "${RC}" = "0" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Determine where awips2-cli has been installed.
|
# Determine where awips2-cli has been installed.
|
||||||
CLI_INSTALL=`rpm -q --queryformat '%{INSTALLPREFIX}\n' awips2-cli`
|
CLI_INSTALL=`rpm -q --queryformat '%{INSTPREFIXES}\n' awips2-cli`
|
||||||
if [ "${CLI_INSTALL}" = "" ]; then
|
if [ "${CLI_INSTALL}" = "" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
Name: awips2-tools
|
Name: awips2-tools
|
||||||
Summary: AWIPS II Tools Distribution
|
Summary: AWIPS II Tools Distribution
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Group: AWIPSII
|
Group: AWIPSII
|
||||||
BuildRoot: /tmp
|
BuildRoot: /tmp
|
||||||
BuildArch: i386
|
BuildArch: i386
|
||||||
|
@ -205,4 +205,4 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||||
|
|
||||||
%defattr(755,awips,fxalpha,755)
|
%defattr(755,awips,fxalpha,755)
|
||||||
%dir /awips2/tools/bin
|
%dir /awips2/tools/bin
|
||||||
/awips2/tools/bin/*
|
/awips2/tools/bin/*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/csh
|
#!/bin/csh
|
||||||
|
|
||||||
set HDF5_TOOLS_INSTALL=`rpm -q --queryformat '%{INSTALLPREFIX}' awips2-tools`
|
set HDF5_TOOLS_INSTALL=`rpm -q --queryformat '%{INSTPREFIXES}' awips2-tools`
|
||||||
|
|
||||||
if $?PATH then
|
if $?PATH then
|
||||||
setenv PATH ${HDF5_TOOLS_INSTALL}/bin:$PATH
|
setenv PATH ${HDF5_TOOLS_INSTALL}/bin:$PATH
|
||||||
|
|
|
@ -8,7 +8,7 @@ if [ ${RC} -ne 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Determine Where awips2-tools Has Been Installed.
|
# Determine Where awips2-tools Has Been Installed.
|
||||||
HDF5_TOOLS_INSTALL=`rpm -q --queryformat '%{INSTALLPREFIX}' awips2-tools`
|
HDF5_TOOLS_INSTALL=`rpm -q --queryformat '%{INSTPREFIXES}' awips2-tools`
|
||||||
if [ "${HDF5_TOOLS_INSTALL}" = "" ]; then
|
if [ "${HDF5_TOOLS_INSTALL}" = "" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue