|
714 | 714 | <!-- Windows-specific README.txt replacements -->
|
715 | 715 | <replace file="${dist.dir}/README.txt" token="@BINARY_PLATFORM@" value="Windows win-${os.arch}" />
|
716 | 716 | <replace file="${dist.dir}/README.txt" token="@BINARY_FILE@" value="${ant.project.name}-${app.version}.msi - ${ant.project.name} Installer" />
|
| 717 | + <replace file="${dist.dir}/README.txt" token="@JAVAMOD_TEXT@" value="This can be modified by changing JAVABIN in ${ant.project.name}${file.separator}${app.version}.0${file.separator}hdfview.bat" /> |
717 | 718 | <replace file="${dist.dir}/README.txt" token="@EXECUTABLE@" value="hdfview.bat" />
|
718 | 719 | <replace file="${dist.dir}/README.txt" token="@INSTALL_TYPE@" value="Running" />
|
719 | 720 | <replace file="${dist.dir}/README.txt" token="@INSTALL_PREFIX_HEADER@" value="To install ${ant.project.name} for Windows:${line.separator}" />
|
|
725 | 726 | <!-- Unix-specific README.txt replacements -->
|
726 | 727 | <replace file="${dist.dir}/README.txt" token="@BINARY_PLATFORM@" value="${uname.os} ${uname.version}" />
|
727 | 728 | <replace file="${dist.dir}/README.txt" token="@BINARY_FILE@" value="${ant.project.name}-${app.version}.0-${uname.os}.sh - ${ant.project.name} Installer" />
|
| 729 | + <replace file="${dist.dir}/README.txt" token="@JAVAMOD_TEXT@" value="This can be modified by changing JAVABIN in ${ant.project.name}${file.separator}${app.version}.0${file.separator}hdfview.sh" /> |
728 | 730 | <replace file="${dist.dir}/README.txt" token="@EXECUTABLE@" value="hdfview.sh" />
|
729 | 731 | <replace file="${dist.dir}/README.txt" token="@INSTALL_TYPE@" value="Installation" />
|
730 | 732 | <replace file="${dist.dir}/README.txt" token="@INSTALL_PREFIX_HEADER@" value="To install ${ant.project.name} for ${uname.os}, copy ${ant.project.name}-${app.version}.0-${uname.os}.sh to where you want${line.separator}to install ${ant.project.name} and:${line.separator}" />
|
|
734 | 736 |
|
735 | 737 | <target name="createMacREADME" depends="createREADME">
|
736 | 738 | <!-- Mac-specific README.txt replacements -->
|
737 |
| - <replace file="${dist.dir}/README.txt" token="@BINARY_PLATFORM@" value="Mac OS X Darwin ${mac.uname}" /> |
| 739 | + <replace file="${dist.dir}/README.txt" token="@BINARY_PLATFORM@" value="Mac OS X Darwin ${uname.version}" /> |
| 740 | + <replace file="${dist.dir}/README.txt" token="@BINARY_FILE@" value="${ant.project.name}-${app.version}.dmg - ${ant.project.name} Installer" /> |
| 741 | + <replace file="${dist.dir}/README.txt" token="@JAVAMOD_TEXT@" value="" /> |
| 742 | + <replace file="${dist.dir}/README.txt" token="@INSTALL_TYPE@" value="" /> |
| 743 | + <replace file="${dist.dir}/README.txt" token="@INSTALL_PREFIX_HEADER@" value="To install ${ant.project.name} for ${uname.os}:" /> |
| 744 | + <replace file="${dist.dir}/README.txt" token="@INSTALL_OR_RUN_FILE@" value="${ant.project.name}-${app.version}.dmg" /> |
| 745 | + <replace file="${dist.dir}/README.txt" token="@OPTIONAL_STEP@" value="" /> |
738 | 746 | </target>
|
739 | 747 |
|
740 | 748 | <target name="deploy" depends="deployWindows, deployUnix, deployMac"
|
|
955 | 963 | <fileset dir="${basedir}" includes="COPYING" />
|
956 | 964 | </copy>
|
957 | 965 |
|
958 |
| - <exec executable="uname" outputproperty="mac.uname"> |
| 966 | + <exec executable="uname" outputproperty="uname.os"> |
| 967 | + <arg value="-s" /> |
| 968 | + </exec> |
| 969 | + |
| 970 | + <exec executable="uname" outputproperty="uname.version"> |
959 | 971 | <arg value="-r" />
|
960 | 972 | </exec>
|
961 | 973 |
|
|
1005 | 1017 | <arg value="install" />
|
1006 | 1018 | <arg value="${ant.project.name}-${app.version}.dmg" />
|
1007 | 1019 | </exec>
|
| 1020 | + |
| 1021 | + <!-- Compress everything into one tar.gz file --> |
| 1022 | + <tar destfile="${dist.dir}/${ant.project.name}-${app.version}-${uname.os}-${uname.version}.tar.gz" compression="gzip"> |
| 1023 | + <tarfileset dir="${dist.dir}" filemode="755"> |
| 1024 | + <include name="COPYING.txt" /> |
| 1025 | + <include name="README.txt" /> |
| 1026 | + <include name="${ant.project.name}-${app.version}.dmg" /> |
| 1027 | + </tarfileset> |
| 1028 | + </tar> |
1008 | 1029 | </target>
|
1009 | 1030 |
|
1010 | 1031 | <target name="packageSource" depends="packageSourceWindows, packageSourceUnix"
|
|
0 commit comments