summaryrefslogtreecommitdiffstats
path: root/c++
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 /c++
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 'c++')
-rw-r--r--c++/Makefile.in6
-rw-r--r--c++/examples/Makefile.in6
-rw-r--r--c++/src/Makefile.in6
-rw-r--r--c++/test/Makefile.in6
4 files changed, 8 insertions, 16 deletions
diff --git a/c++/Makefile.in b/c++/Makefile.in
index 93ae380..027100d 100644
--- a/c++/Makefile.in
+++ b/c++/Makefile.in
@@ -691,8 +691,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 \
@@ -719,8 +718,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 \
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 \
diff --git a/c++/src/Makefile.in b/c++/src/Makefile.in
index 8ad24cf..e78e867 100644
--- a/c++/src/Makefile.in
+++ b/c++/src/Makefile.in
@@ -769,8 +769,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 \
@@ -797,8 +796,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 \
diff --git a/c++/test/Makefile.in b/c++/test/Makefile.in
index c90de39..be00204 100644
--- a/c++/test/Makefile.in
+++ b/c++/test/Makefile.in
@@ -657,8 +657,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 \
@@ -685,8 +684,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 \