10719 Commits

Author SHA1 Message Date
Brad King
ac17dc4a43 KWSys: Remove "copyPermissions" parameters
The CopyFileIfDifferent, CopyFileAlways, CopyAFile and CopyADirectory
methods should always copy permissions.  The special cases in which a
caller would pass copyPermissions=false should be handled at the call
site.  The parameter needlessly complicates the interface and semantics
of these methods.
2010-06-04 16:02:00 -04:00
Brad King
b180bad2c6 Merge branch 'file-time-permissions' 2010-06-04 15:53:48 -04:00
Brad King
fdb5f78705 CPack: Try harder to remove temporary dir (#10793)
Windows filesystems sometimes lock files temporarily.  Try removing the
CPack temp install folder multiple times before giving up.
2010-06-04 14:32:08 -04:00
David Cole
ef491f7821 Allow redirects: set CURLOPT_FOLLOWLOCATION to 1
Enable file(DOWNLOAD ...) to follow redirects. Thanks to
Michael Wild for requesting the addition and providing
the majority of the patch.
2010-06-04 13:38:07 -04:00
KWSys Robot
5f4ac98bc5 KWSys Nightly Date Stamp 2010-06-04 00:01:03 -04:00
Zach Mullen
d6b71078da Fix subscript out of range crash 2010-06-03 13:52:48 -04:00
David Cole
d093abef7e Fix failing ExternalProject test on Borland dashboards.
If there is a .bat or .cmd file used as a custom command
then the Borland Makefiles generator (specifically) requires
using the "call " syntax before the name of the .bat or .cmd
file. This fix applies to all Makefile based generators where
WindowsShell is true.
2010-06-03 13:43:39 -04:00
Zach Mullen
082c87e528 Cross-platform fixes for checksum/retry code 2010-06-03 13:27:26 -04:00
Brad King
c15ed3294c KWSys: Avoid stat in CopyFileAlways (#10790)
On Windows 7 the file size reported by 'stat' on a new file sometimes
reports zero even though the real size is correct.  This causes our
CopyFileAlways method to falsely detect copy failure.  Work around the
problem by trusting the state of ofstream after writing the file.
2010-06-03 12:46:11 -04:00
Brad King
b8a1319c35 Avoid use of CopyAFile "copyPermissions" parameter
Commit 0fafdb7e (Do not copy permissions of files when making the copy
in an install rule, 2008-12-18) added special behavior to KWSys file
copy methods for this special case.  Use a local solution to avoid use
of the special behavior so it can be removed later.
2010-06-03 11:57:02 -04:00
Brad King
cae85c9f65 Borland: No S_IWGRP is available 2010-06-03 11:18:39 -04:00
Brad King
85cbdaade2 Really trust umask in file(WRITE) command (#10789, #10126)
Commit 8d0161c8 (Trust umask for file permissions, 2010-01-12) taught
these commands to set permissions to 0666 explicitly.  The intention was
to let the open() call inside ofstream handle permsisions so that umask
would be honored.  Now we set permissions only when we need to preserve
those on an existing file.  New files will be created with umask-based
permissions.
2010-06-03 10:50:30 -04:00
Zach Mullen
e525649a4e Checksums on CTest submit files, and retry timed out submissions. 2010-06-03 10:34:34 -04:00
KWSys Robot
3ac3dea6f0 KWSys Nightly Date Stamp 2010-06-03 00:01:02 -04:00
KWSys Robot
eaee8a2cb1 KWSys Nightly Date Stamp 2010-06-02 00:01:04 -04:00
KWSys Robot
7f619608d5 KWSys Nightly Date Stamp 2010-06-01 00:01:05 -04:00
KWSys Robot
b9e5faf618 KWSys Nightly Date Stamp 2010-05-31 00:01:07 -04:00
KWSys Robot
f034094e90 KWSys Nightly Date Stamp 2010-05-30 00:01:11 -04:00
KWSys Robot
6e8aa44327 KWSys Nightly Date Stamp 2010-05-29 00:01:04 -04:00
Brad King
5c49aa0c86 Xcode: Archives use STATIC_LIBRARY_FLAGS, not LINK_FLAGS
The LINK_FLAGS property is defined only for targets that really link.
These include executables and shared libraries.  For static libraries we
define the STATIC_LIBRARY_FLAGS property.  Teach the Xcode generator to
make this distinction.
2010-05-28 13:23:31 -04:00
Brad King
fe971d97ca Add STATIC_LIBRARY_FLAGS_<CONFIG> property (#10768)
This is a per-configuration version of STATIC_LIBRARY_FLAGS.
2010-05-28 11:09:10 -04:00
Brad King
159606c366 Implement LINK_FLAGS_<CONFIG> in VS 10 generator
Add support for the per-config LINK_FLAGS property in VS 10.  This was
simply missing.
2010-05-28 11:01:40 -04:00
Brad King
7458d465dd Fix LINK_FLAGS_<CONFIG> in VS 6 generator
Add the flags to the link step, not the compile step!
2010-05-28 10:22:19 -04:00
KWSys Robot
e6efd9ac0a KWSys Nightly Date Stamp 2010-05-28 00:01:03 -04:00
David Cole
0efa5f3747 Fix unused variable warning in new code. 2010-05-27 14:49:38 -04:00
David Cole
f67139ae6f Improve FILE(DOWNLOAD) and ExternalProject.
Improve FILE(DOWNLOAD ...):

- Add percent complete progress output to the FILE DOWNLOAD
  command. This progress output is off by default to
  preserve existing behavior. To turn it on, pass
  SHOW_PROGRESS as an argument.

- Add EXPECTED_MD5 argument. Verify that the downloaded
  file has the expected md5 sum after download is complete.

- Add documentation for SHOW_PROGRESS and EXPECTED_MD5.

  When the destination file exists already and has the
  expected md5 sum, then do not bother re-downloading
  the file. ("Short circuit" return.)

  Also, add a test that checks for the status output
  indicating that the short circuit behavior is actually
  occurring. Use a binary file for the test so that the
  md5 sum is guaranteed to be the same on all platforms
  regardless of "shifting text file line ending" issues.

Improve ExternalProject:

- Add argument URL_MD5.

- Add verify step that compares md5 sum of .tar.gz file
  before extracting it.

- Add md5 check to download step, too, to prevent
  unnecessary downloads.

- Emit a warning message when a file is not verified.
  Indicate that the file may be corrupt or that no
  checksum was specified.
2010-05-27 12:21:56 -04:00
KWSys Robot
282a119e35 KWSys Nightly Date Stamp 2010-05-27 00:01:10 -04:00
KWSys Robot
515339f313 KWSys Nightly Date Stamp 2010-05-26 00:01:04 -04:00
Bill Hoffman
1d4e121d9c Add php coverage to ctest. 2010-05-25 09:23:25 -04:00
KWSys Robot
d5e86a5f45 KWSys Nightly Date Stamp 2010-05-25 00:01:03 -04:00
KWSys Robot
41e675a045 KWSys Nightly Date Stamp 2010-05-24 00:01:06 -04:00
KWSys Robot
37fb1f3690 KWSys Nightly Date Stamp 2010-05-23 00:01:05 -04:00
KWSys Robot
ba88271427 KWSys Nightly Date Stamp 2010-05-22 00:01:12 -04:00
KWSys Robot
45e6aee72c KWSys Nightly Date Stamp 2010-05-21 00:01:14 -04:00
KWSys Robot
b71b3b710f KWSys Nightly Date Stamp 2010-05-20 00:01:02 -04:00
Clinton Stimpson
45d7200a73 Fix for fix to bug #9975 2010-05-19 15:40:48 -06:00
Zach Mullen
fa3c1817b1 Cost-based test scheduling should only be done in parallel mode. 2010-05-19 11:20:30 -04:00
KWSys Robot
6138ff02ed KWSys Nightly Date Stamp 2010-05-19 00:01:03 -04:00
KWSys Robot
3d784cc752 KWSys Nightly Date Stamp 2010-05-18 00:01:07 -04:00
Brad King
3ebb41d58a Merge branch 'version' 2010-05-17 13:34:29 -04:00
KWSys Robot
0559c4e04e KWSys Nightly Date Stamp 2010-05-17 13:24:39 -04:00
KWSys Robot
f9f2e61e27 KWSys Nightly Date Stamp 2010-05-17 13:24:25 -04:00
David Cole
7220df021b Fix generation of .filters files for Visual Studio 2010 generator.
Only generate .filters files if they are different than the last time
they were generated. This should prevent the unnecessary reloads
being triggered with Visual Studio 2010 builds.
2010-05-14 16:57:15 -04:00
KWSys Robot
b81727621a KWSys Nightly Date Stamp 2010-05-14 00:01:02 -04:00
KWSys Robot
f7abdff721 KWSys Nightly Date Stamp 2010-05-13 00:01:03 -04:00
Bill Hoffman
f2d18d6e99 Try to remove some warnings. 2010-05-12 10:41:06 -04:00
Bill Hoffman
521e26752b Ignore some more sgi warnings. 2010-05-12 10:40:12 -04:00
Bill Hoffman
5eeaa535b3 Remove conversion warning. 2010-05-12 10:22:55 -04:00
Bill Hoffman
0b5288849f Silence warnings on sgi compiler. 2010-05-12 09:37:42 -04:00
Zach Mullen
38cabcd9ff Fix shadowed local warning in coverage handler 2010-05-12 09:37:43 -04:00