diff options
author | Albert Cheng <acheng@hdfgroup.org> | 1999-06-08 00:42:10 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 1999-06-08 00:42:10 (GMT) |
commit | c752adc4ac583408e7ded5a8f12851acf00e237e (patch) | |
tree | 10d85a517444b918e76d668b50f816eadfd42f11 /bin | |
parent | 006e67409ba519fecb6a25b5480abc8e0ffcd086 (diff) | |
download | hdf5-c752adc4ac583408e7ded5a8f12851acf00e237e.zip hdf5-c752adc4ac583408e7ded5a8f12851acf00e237e.tar.gz hdf5-c752adc4ac583408e7ded5a8f12851acf00e237e.tar.bz2 |
[svn-r1313] Neither SGI nor Solaris allows an empty 'then' body.
Changed it to conditional statements. Tested fine in
SGI and Solaris.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/snapshot | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/snapshot b/bin/snapshot index e7c5c85..9a40f6f 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -48,13 +48,10 @@ if [ -d ${COMPARE}/previous ]; then if (diff -c ${COMPARE}/previous/MANIFEST ${COMPARE}/current/MANIFEST); then snapshot=no for src in `grep '^\.' ${COMPARE}/current/MANIFEST|expand|cut -f1 -d' '`; do - if (diff -I H5_VERS_RELEASE -I " released on " \ - ${COMPARE}/previous/$src ${COMPARE}/current/$src); then - else + diff -I H5_VERS_RELEASE -I " released on " \ + ${COMPARE}/previous/$src ${COMPARE}/current/$src || \ snapshot=yes # Don't break because we want to see all the diffs. - #break - fi done fi fi |