72 lines
No EOL
2.9 KiB
XML
72 lines
No EOL
2.9 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
This_software_was_developed_and_/_or_modified_by_Raytheon_Company,
|
|
pursuant_to_Contract_DG133W-05-CQ-1067_with_the_US_Government.
|
|
|
|
U.S._EXPORT_CONTROLLED_TECHNICAL_DATA
|
|
This_software_product_contains_export-restricted_data_whose
|
|
export/transfer/disclosure_is_restricted_by_U.S._law._Dissemination
|
|
to_non-U.S._persons_whether_in_the_United_States_or_abroad_requires
|
|
an_export_license_or_other_authorization.
|
|
|
|
Contractor_Name:________Raytheon_Company
|
|
Contractor_Address:_____6825_Pine_Street,_Suite_340
|
|
________________________Mail_Stop_B8
|
|
________________________Omaha,_NE_68106
|
|
________________________402.291.0100
|
|
|
|
See_the_AWIPS_II_Master_Rights_File_("Master_Rights_File.pdf")_for
|
|
further_licensing_information.
|
|
-->
|
|
<!-- ================================================================================ -->
|
|
<!-- Deploy script for the Command Line Interface Tools. -->
|
|
<!-- Usage: -->
|
|
<!-- ant -f deploy.xml -Dinstall.dir={path to install} [-Dinstaller=true] -->
|
|
<!-- ================================================================================ -->
|
|
|
|
<project default="deploy.all" basedir="." >
|
|
<property environment="user"/>
|
|
|
|
<!-- Set the database host name for the copy filter -->
|
|
<property name="def.db.host" value="localhost" />
|
|
<condition property="db.host" value="$requestServerAddress" else="${def.db.host}">
|
|
<isset property="installer"/>
|
|
</condition>
|
|
|
|
<!-- set the Python home location for the copy filter -->
|
|
<property name="def.py.home" value="${user.HOME}/awips" />
|
|
<condition property="py.home" value="$pythonHome" else="${def.py.home}">
|
|
<isset property="installer"/>
|
|
</condition>
|
|
|
|
<!-- Create the copy filter -->
|
|
<!-- filter set -->
|
|
<filterset id="installer.filter.set">
|
|
<filter token="EDEX_ADDR" value="${db.host}"/>
|
|
<filter token="PY_HOME" value="${py.home}" />
|
|
</filterset>
|
|
|
|
<target name="deploy.all" description="Deploys CLI to a specific directory">
|
|
<!-- copy the CLI tools to the deploy directory -->
|
|
<echo>Updating ${install.dir} with latest CLI tools</echo>
|
|
<mkdir dir="${install.dir}"/>
|
|
<copy todir="${install.dir}" overwrite="true">
|
|
<fileset dir="${basedir}/impl"/>
|
|
<filterset refid="installer.filter.set"/>
|
|
</copy>
|
|
<antcall target="set.permissions"/>
|
|
</target>
|
|
|
|
<target name="set.permissions" unless="installer"
|
|
description="sets the permissions on the scripts - local install only">
|
|
<echo>Setting permissions in ${install.dir} to 'ugo+rx'</echo>
|
|
<chmod perm="ugo+rx" >
|
|
<fileset dir="${install.dir}">
|
|
<include name="*"/>
|
|
<include name="*.py"/>
|
|
<include name="*.sh"/>
|
|
<exclude name="read.me"/>
|
|
</fileset>
|
|
</chmod>
|
|
</target>
|
|
</project> |