Skip to content

Commit 2f1cdb2

Browse files
committed
Merge pull request HDFGroup#167 in HDFVIEW/hdfview from ~BYRN/hdfview_adb:release/hdfview-3.0 to release/hdfview-3.0
* commit 'c1a1e4beb7764aa20b786d80c1b00cea1c25e0bc': Correct OSX packaging Add OSX support to OSX package Initial creation of release branch
2 parents 8f7c18d + c1a1e4b commit 2f1cdb2

File tree

5 files changed

+34
-13
lines changed

5 files changed

+34
-13
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION=hdf-view-3.99
1+
VERSION=hdf-view-3.0

build.xml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@
714714
<!-- Windows-specific README.txt replacements -->
715715
<replace file="${dist.dir}/README.txt" token="@BINARY_PLATFORM@" value="Windows win-${os.arch}" />
716716
<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" />
717718
<replace file="${dist.dir}/README.txt" token="@EXECUTABLE@" value="hdfview.bat" />
718719
<replace file="${dist.dir}/README.txt" token="@INSTALL_TYPE@" value="Running" />
719720
<replace file="${dist.dir}/README.txt" token="@INSTALL_PREFIX_HEADER@" value="To install ${ant.project.name} for Windows:${line.separator}" />
@@ -725,6 +726,7 @@
725726
<!-- Unix-specific README.txt replacements -->
726727
<replace file="${dist.dir}/README.txt" token="@BINARY_PLATFORM@" value="${uname.os} ${uname.version}" />
727728
<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" />
728730
<replace file="${dist.dir}/README.txt" token="@EXECUTABLE@" value="hdfview.sh" />
729731
<replace file="${dist.dir}/README.txt" token="@INSTALL_TYPE@" value="Installation" />
730732
<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,7 +736,13 @@
734736

735737
<target name="createMacREADME" depends="createREADME">
736738
<!-- 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="" />
738746
</target>
739747

740748
<target name="deploy" depends="deployWindows, deployUnix, deployMac"
@@ -955,7 +963,11 @@
955963
<fileset dir="${basedir}" includes="COPYING" />
956964
</copy>
957965

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">
959971
<arg value="-r" />
960972
</exec>
961973

@@ -1005,6 +1017,15 @@
10051017
<arg value="install" />
10061018
<arg value="${ant.project.name}-${app.version}.dmg" />
10071019
</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>
10081029
</target>
10091030

10101031
<target name="packageSource" depends="packageSourceWindows, packageSourceUnix"

docs/Build_HDFView.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ From the top HDFView source code directory run: /<path to ANT executable>/ant ru
4545
From the top HDFView source code directory run: /<path to ANT executable>/ant package
4646

4747
Go into the build/dist directory that gets created to find the HDFView distribution.
48-
For example, HDFView-3.0.0-Linux_64.tar.gz.
48+
For example, HDFView-3.0-Linux_64.tar.gz.
4949

5050
Uncompress the HDFView binary and bring up HDFView by executing the shell script or batch file included.
5151

lib/macosx/distribution.plist

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?xml version="1.0" encoding="utf-8" standalone="no"?>
22
<installer-gui-script minSpecVersion="1">
3-
<pkg-ref id="org.hdfgroup.HDFView-3.99"/>
4-
<product id="org.hdfgroup.HDFView-3.99" version="3.99"/>
5-
<title>HDFView-3.99</title>
3+
<pkg-ref id="org.hdfgroup.HDFView-3.0"/>
4+
<product id="org.hdfgroup.HDFView-3.0" version="3.0"/>
5+
<title>HDFView-3.0</title>
66
<options customize="never" require-scripts="false" hostArchitectures="x86_64"/>
77
<choices-outline>
88
<line choice="default">
9-
<line choice="org.hdfgroup.HDFView-3.99"/>
9+
<line choice="org.hdfgroup.HDFView-3.0"/>
1010
</line>
1111
</choices-outline>
12-
<choice id="default" title="HDFView-3.99" versStr="3.99"/>
13-
<choice id="org.hdfgroup.HDFView-3.99" title="HDFView-3.99" visible="false">
14-
<pkg-ref id="org.hdfgroup.HDFView-3.99"/>
12+
<choice id="default" title="HDFView-3.0" versStr="3.0"/>
13+
<choice id="org.hdfgroup.HDFView-3.0" title="HDFView-3.0" visible="false">
14+
<pkg-ref id="org.hdfgroup.HDFView-3.0"/>
1515
</choice>
16-
<pkg-ref id="org.hdfgroup.HDFView-3.99" version="3.99.99" onConclusion="none">org.hdfgroup.HDFView-3.99.pkg</pkg-ref>
16+
<pkg-ref id="org.hdfgroup.HDFView-3.0" version="3.0" onConclusion="none">org.hdfgroup.HDFView-3.0.pkg</pkg-ref>
1717
</installer-gui-script>

package_files/README.txt.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ It was built with the following options:
1313

1414
===========================================================================
1515
Note: By default @HDFJAVA_PACKAGE_NAME@ runs on the included Java JRE @JRE_VERSION@.
16-
This can be modified by changing JAVABIN in @HDFJAVA_PACKAGE_NAME@@FILE_SEP@@HDFVIEW_PACKAGE_VERSION_STRING@@FILE_SEP@@EXECUTABLE@
16+
@JAVAMOD_TEXT@
1717
===========================================================================
1818

1919
The contents of this directory are:

0 commit comments

Comments
 (0)