diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-07-07 04:52:45 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-07-07 04:52:45 (GMT) |
commit | f68a2e6db773f31157cdf500a6509fa5249b9cff (patch) | |
tree | ff6ccc3b41cc6dc42b770af294d4764b585a459f /c++/examples | |
parent | 3781d2ed5af7a38b738246e94def670e9cd971cb (diff) | |
download | hdf5-f68a2e6db773f31157cdf500a6509fa5249b9cff.zip hdf5-f68a2e6db773f31157cdf500a6509fa5249b9cff.tar.gz hdf5-f68a2e6db773f31157cdf500a6509fa5249b9cff.tar.bz2 |
[svn-r11034] Purpose:
bug fix.
Description:
-nt is not a universal option for the test command in all platforms.
The use of it in conclude.am cause some platforms to bark at the
Makefile generated.
Solution:
Created a command script bin/newer which tests if file1 is newer
than file2. Replace the "test file1 -nt file2" by
"newer file1 file2".
Platforms tested:
Tested in sol.
Diffstat (limited to 'c++/examples')
-rw-r--r-- | c++/examples/Makefile.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/c++/examples/Makefile.in b/c++/examples/Makefile.in index 2d9b939..5384da8 100644 --- a/c++/examples/Makefile.in +++ b/c++/examples/Makefile.in @@ -586,8 +586,7 @@ _exec_check-s: $(TEST_PROG_CHKEXE) $(TEST_SCRIPT_CHKSH) $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: @if test "X$@" != "X.chkexe_" && test "X$@" != "Xdummy.chkexe_"; then \ echo "============================"; \ - if test -f $(@:.chkexe_=.chkexe) && \ - test $(@:.chkexe_=.chkexe) -nt $(@:.chkexe_=)$(EXEEXT); then \ + if $(top_srcdir)/bin/newer $(@:.chkexe_=.chkexe) $(@:.chkexe_=)$(EXEEXT); then \ echo "No need to test $(@:.chkexe_=)$(EXEEXT) again."; \ else \ if test "X$(HDF_FORTRAN)" = "Xyes"; then \ @@ -614,8 +613,7 @@ $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: $(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummy.chksh_: @if test "X$@" != "X.chksh_" && test "X$@" != "Xdummy.chksh_"; then \ echo "============================"; \ - if test -f $(@:.chksh_=.chksh) && \ - test $(@:.chksh_=.chksh) -nt $(@:.chksh_=); then \ + if $(top_srcdir)/bin/newer $(@:.chksh_=.chksh) $(@:.chksh_=); then \ echo "No need to test $(@:.chksh_=) again."; \ else \ if test "X$(HDF_FORTRAN)" = "Xyes"; then \ |