summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-07-07 04:52:45 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-07-07 04:52:45 (GMT)
commitf68a2e6db773f31157cdf500a6509fa5249b9cff (patch)
treeff6ccc3b41cc6dc42b770af294d4764b585a459f /testpar
parent3781d2ed5af7a38b738246e94def670e9cd971cb (diff)
downloadhdf5-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 'testpar')
-rw-r--r--testpar/Makefile.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/testpar/Makefile.in b/testpar/Makefile.in
index 66d3885..617960a 100644
--- a/testpar/Makefile.in
+++ b/testpar/Makefile.in
@@ -669,8 +669,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 \
@@ -697,8 +696,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 \