Browse Source

Search $PATH to see if rpm is available if it is not present in normal locations.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272515 13f79535-47bb-0310-9956-ffa450edef68
master
Magesh Umasankar 23 years ago
parent
commit
6858be5cce
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      build.xml

+ 7
- 2
build.xml View File

@@ -965,8 +965,13 @@
</target> </target>


<target name="rpm_check"> <target name="rpm_check">
<available property="rpm.present"
file="/bin/rpm"/>
<condition property="rpm.present">
<or>
<available file="/bin/rpm" />
<available file="/usr/local/bin/rpm" />
<available file="rpm" filepath="${env.PATH}" />
</or>
</condition>
</target> </target>


<target name="rpm" description="--> Build the RPM files for ant" <target name="rpm" description="--> Build the RPM files for ant"


Loading…
Cancel
Save