diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2001-12-06 21:42:38 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2001-12-06 21:42:38 (GMT) |
commit | f41dd6fd2c1e8c42c2b614d1ddd06c2bdc1e7087 (patch) | |
tree | e385d2b4a2fe7e09afca4f0fcafdbb4f0812de5e | |
parent | e0cfbd53e07c4c0b0fefd7c6aabe51f75bff409a (diff) | |
download | hdf5-f41dd6fd2c1e8c42c2b614d1ddd06c2bdc1e7087.zip hdf5-f41dd6fd2c1e8c42c2b614d1ddd06c2bdc1e7087.tar.gz hdf5-f41dd6fd2c1e8c42c2b614d1ddd06c2bdc1e7087.tar.bz2 |
[svn-r4681] Purpose:
Bug fix
Description:
A a build had occurred in the source tree ($CURRENT) and did not
do a distclean, the left over files would interfere with srcdir
build.
Solution:
Added a "make distclean" in the "checkout" option to clean up
the $CURRENT just in case. Not necessarily the most optimal
spot to do the cleaning but convenient.
Platforms tested:
Eirene.
-rwxr-xr-x | bin/snapshot | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/snapshot b/bin/snapshot index c67b756..5b26d85 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -200,6 +200,16 @@ if [ "$cmd" = "all" -o -n "$cmdcheckout" ]; then # not, just create one and assume that a snapshot is necessary. test -d ${BASEDIR} || mkdir -p ${BASEDIR} || exit 1 + # If there is a Makefile in ${CURRENT}, the last test done in it + # has not been distclean'ed. They would interfere with other + # --srcdir build since make considers the files in ${CURRENT} + # take precedence over files in its own build-directory. Run + # a "make distclean" to clean them all out. This is not really + # part of the "checkout" functions but this is the most convenient + # spot to do the distclean. We will also continue the checkout process + # regardless of the return code of distclean. + ( cd ${CURRENT}; test -f Makefile && ${MAKE} distclean) + # Check out the current version from CVS cvs -Q co -d ${CURRENT} ${CVSVERSION} hdf5 || exit 1 fi # Do CVS checkout |