diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2014-06-23 20:24:08 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2014-06-23 20:24:08 (GMT) |
commit | 9158e8aa03227a294739aed5549ab14c1d04fb5c (patch) | |
tree | b201f1d5616b04576de70d5043d196fbe199b06d /bin | |
parent | 67ba5eb6e8a71a110d47fd3079edcc1fe09fb95f (diff) | |
download | hdf5-9158e8aa03227a294739aed5549ab14c1d04fb5c.zip hdf5-9158e8aa03227a294739aed5549ab14c1d04fb5c.tar.gz hdf5-9158e8aa03227a294739aed5549ab14c1d04fb5c.tar.bz2 |
[svn-r25342] Bring revisions #25120 - #25266 from trunk to revise_chunks.
Tested on jam, koala, ostrich, platypus.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reconfigure | 4 | ||||
-rwxr-xr-x | bin/release | 49 |
2 files changed, 28 insertions, 25 deletions
diff --git a/bin/reconfigure b/bin/reconfigure index 570f06e..f2f1f23 100755 --- a/bin/reconfigure +++ b/bin/reconfigure @@ -33,7 +33,7 @@ AUTOMAKE_VERSION="automake (GNU automake) 1.14.1" AUTOHEADER_VERSION="autoheader (GNU Autoconf) 2.69" ACLOCAL_VERSION="aclocal (GNU automake) 1.14.1" LIBTOOL_VERSION="(GNU libtool) 2.4.2" -M4_VERSION="m4 (GNU M4) 1.4.16" +M4_VERSION="m4 (GNU M4) 1.4.17" # # When upgrading automake's version, don't forget to also update its @@ -61,7 +61,7 @@ if test -z ${LIBTOOL}; then LIBTOOL=/mnt/hdf/packages/libtool/libtool-2.4.2/bin/libtool fi if test -z ${M4}; then - M4=/mnt/hdf/packages/m4/m4-1.4.16/bin/m4 + M4=/mnt/hdf/packages/m4/m4-1.4.17/bin/m4 fi # Check version numbers of all autotools against the "correct" versions diff --git a/bin/release b/bin/release index fd04279..68745ec 100755 --- a/bin/release +++ b/bin/release @@ -42,12 +42,13 @@ USAGE() cat << EOF Usage: $0 [--nocheck] [-d <dir>] [-h] <methods> ... -d DIR The name of the directory where the releas(es) should be - placed. By default, the directory is ./releases + placed. --nocheck Ignore errors in MANIFEST file. --private Make a private release with today's date in version information. +This must be run at the top level of the source directory. The other command-line options are the names of the programs to use for compressing the resulting tar archive (if none are given then "tar md5" is assumed): @@ -61,19 +62,21 @@ for compressing the resulting tar archive (if none are given then Examples: - $ release - releases/hdf5-1.0.38.tar - releases/hdf5-1.0.38.tar.md5 + $ bin/release -d /tmp + /tmp/hdf5-1.8.13-RELEASE.txt + /tmp/hdf5-1.8.13.tar + /tmp/hdf5-1.8.13.tar.md5 - $ release gzip - releases/hdf5-1.0.38.tar.gz + $ bin/release -d /tmp gzip + /tmp/hdf5-1.8.13-RELEASE.txt + /tmp/hdf5-1.8.13.tar.gz - $ release -d /tmp tar gzip zip md5 - /tmp/hdf5-1.0.38.tar - /tmp/hdf5-1.0.38.tar.Z - /tmp/hdf5-1.0.38.tar.gz - /tmp/hdf5-1.0.38.tar.bz2 - /tmp/hdf5-1.0.38.tar.md5 + $ bin/release -d /tmp tar gzip zip md5 + /tmp/hdf5-1.8.13-RELEASE.txt + /tmp/hdf5-1.8.13.tar + /tmp/hdf5-1.8.13.tar.gz + /tmp/hdf5-1.8.13.tar.md5 + /tmp/hdf5-1.8.13.tar.zip EOF @@ -107,19 +110,19 @@ tar2zip() echo "usage: tar2zip <tarfilename> <zipfilename>" return 1 fi - tmpdir=/tmp/tmpdir$$ - mkdir -p $tmpdir + ztmpdir=/tmp/tmpdir$$ + mkdir -p $ztmpdir version=$1 tarfile=$2 zipfile=$3 - # step 1: untar tarball in tmpdir - (cd $tmpdir; tar xf -) < $tarfile + # step 1: untar tarball in ztmpdir + (cd $ztmpdir; tar xf -) < $tarfile # sanity check - if [ ! -d $tmpdir/$version ]; then - echo "untar did not create $tmp/$version source dir" + if [ ! -d $ztmpdir/$version ]; then + echo "untar did not create $ztmpdir/$version source dir" # cleanup - rm -rf $tmpdir + rm -rf $ztmpdir return 1 fi # step 2: convert text files @@ -128,7 +131,7 @@ tar2zip() # -k Keep the date stamp # -q quiet mode # grep redirect output to /dev/null because -q or -s are not portable. - find $tmpdir/$version | \ + find $ztmpdir/$version | \ while read inf; do \ if file $inf | grep "$inf\: .*text" > /dev/null 2>&1 ; then \ unix2dos -q -k $inf; \ @@ -139,11 +142,11 @@ tar2zip() # -y Store symbolic links as such in the zip archive # -r recursive # -q quiet - (cd $tmpdir; zip -9 -y -r -q $version.zip $version) - mv $tmpdir/$version.zip $zipfile + (cd $ztmpdir; zip -9 -y -r -q $version.zip $version) + mv $ztmpdir/$version.zip $zipfile # cleanup - rm -rf $tmpdir + rm -rf $ztmpdir } # This command must be run at the top level of the hdf5 source directory. |