summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2004-01-23 16:31:25 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2004-01-23 16:31:25 +0000
commitcd64529282da5edc9754f68e0d828f3f2fe3afc5 (patch)
treee8ebdaae56bf17573fef5243d3426c21185dec0a
parentfac56d01f2636b4b2cb42044b7b88a0112a95def (diff)
downloadATCD-cd64529282da5edc9754f68e0d828f3f2fe3afc5.tar.gz
ChangeLogTag: Fri Jan 23 10:30:12 2004 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r--ChangeLog8
-rwxr-xr-xbin/create_ace_build.pl62
2 files changed, 41 insertions, 29 deletions
diff --git a/ChangeLog b/ChangeLog
index 3cff40f59ca..2f36ff06c8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Fri Jan 23 10:30:12 2004 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/create_ace_build.pl:
+
+ Exclude .exp files and ensure that we can stat() the real file
+ before checking the modification time in
+ backup_and_copy_changed().
+
Fri Jan 23 09:41:11 2004 Chad Elliott <elliott_c@ociweb.com>
* bin/MakeProjectCreator/templates/vc7.mpd:
diff --git a/bin/create_ace_build.pl b/bin/create_ace_build.pl
index 651437ce070..a6785c63e56 100755
--- a/bin/create_ace_build.pl
+++ b/bin/create_ace_build.pl
@@ -83,14 +83,17 @@ print "Creating or updating builds in $starting_dir\n";
#### If the $linked file is newer than the real file then
#### backup the real file, and replace it with the linked
-#### version.
+#### version.
sub backup_and_copy_changed {
my($real, $linked) = @_;
-
my($status_real) = stat($real);
- my($status_linked) = stat($linked);
+ if (! $status_real) {
+ die "ERROR: cannot access $real.\n";
+ }
+
+ my($status_linked) = stat($linked);
if ($status_linked->mtime > $status_real->mtime) {
rename($real, $real . '.bak');
rename($linked, $real);
@@ -125,7 +128,7 @@ sub cab_link {
if (! $status) {
die "ERROR: cab_link() chdir " . $curdir . " failed.\n";
}
-
+
my($base_linked) = basename($linked);
if (! -e $real) {
@@ -150,9 +153,9 @@ sub cab_link {
## This should never happen, but there appears to be a bug
## with the underlying win32 apis on Windows Server 2003.
## Long paths will cause an error which perl will ignore.
- ## Unicode versions of the apis seem to work fine.
+ ## Unicode versions of the apis seem to work fine.
## To experiment try Win32 _fullpath() and CreateHardLink with
- ## long paths.
+ ## long paths.
print "ERROR : Skipping $real.\n";
return;
}
@@ -278,43 +281,44 @@ sub wanted {
);
$matches = $matches &&
- (
+ (
($nlink || (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_))) &&
! -l $_ &&
! /^core\z/s &&
! /^.*\.state\z/s &&
- ! /^.*\.so\z/s &&
- ! /^.*\.[oa]\z/s &&
- ! /^.*\.dll\z/s &&
- ! /^.*\.lib\z/s &&
+ ! /^.*\.so\z/s &&
+ ! /^.*\.[oa]\z/s &&
+ ! /^.*\.dll\z/s &&
+ ! /^.*\.lib\z/s &&
! /^.*\.obj\z/s &&
! /^.*~\z/s &&
- ! /^\.\z/s &&
+ ! /^\.\z/s &&
! /^\.#.*\z/s &&
- ! /^.*\.log\z/s
+ ! /^.*\.log\z/s
);
if ($mpc && $matches) {
- $matches =
+ $matches =
($File::Find::dir =~ /include\/makeinclude*/) ||
(
- ! /^.*\.dsp\z/s &&
- ! /^.*\.vcproj\z/s &&
- ! /^.*\.bor\z/s &&
- ! /^.*\.dsw\z/s &&
- ! /^.*\.sln\z/s &&
- ! /^.*\.vcp\z/s &&
- ! /^.*\.nmake\z/s &&
- ! /^.*\.am\z/s &&
- ! /^.*\.vcw\z/s &&
- ! /^.*\.mak\z/s &&
- ! /^.*\.bld\z/s &&
- ! /^.*\.icc\z/s &&
- ! /^.*\.icp\z/s &&
+ ! /^.*\.dsp\z/s &&
+ ! /^.*\.vcproj\z/s &&
+ ! /^.*\.bor\z/s &&
+ ! /^.*\.dsw\z/s &&
+ ! /^.*\.sln\z/s &&
+ ! /^.*\.vcp\z/s &&
+ ! /^.*\.nmake\z/s &&
+ ! /^.*\.am\z/s &&
+ ! /^.*\.vcw\z/s &&
+ ! /^.*\.mak\z/s &&
+ ! /^.*\.bld\z/s &&
+ ! /^.*\.icc\z/s &&
+ ! /^.*\.icp\z/s &&
! /^.*\.ncb\z/s &&
! /^.*\.opt\z/s &&
! /^.*\.bak\z/s &&
! /^.*\.ilk\z/s &&
+ ! /^.*\.exp\z/s &&
! /^.*\.pdb\z/s &&
! /^\.cvsignore\z/s &&
! /^\.disable\z/s &&
@@ -346,7 +350,7 @@ foreach $file (@files) {
}
} else {
unless (($^O ne 'MSWin32') && (-e "$build/$file")) {
- if (!$absolute) {
+ if (!$absolute) {
$up = '..';
while ($build =~ m%/%g) {
$up .= '/..';
@@ -382,7 +386,7 @@ foreach $build (@builds) {
my($line) = $_;
$line =~ s/\s+$//;
if (-e "$starting_dir/$line") {
- ## The links were already added in cab_link when they
+ ## The links were already added in cab_link when they
## were checked for changes.
} else {
print "Removing $build/$line \n" if $verbose;