Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59d2cd5
)
A few $last_touch tweaks.
author
Wayne Davison
<wayned@samba.org>
Wed, 16 Apr 2008 16:11:15 +0000
(09:11 -0700)
committer
Wayne Davison
<wayned@samba.org>
Wed, 16 Apr 2008 16:11:15 +0000
(09:11 -0700)
packaging/patch-update
patch
|
blob
|
blame
|
history
diff --git
a/packaging/patch-update
b/packaging/patch-update
index
4892d66
..
62f9980
100755
(executable)
--- a/
packaging/patch-update
+++ b/
packaging/patch-update
@@
-51,7
+51,7
@@
if ($incl_generated_files) {
mkdir($tmp_dir, 0700) or die "Unable to mkdir($tmp_dir): $!\n";
system "./config.status Makefile && make gen && rsync -a @extra_files $tmp_dir/master/" and exit 1;
}
mkdir($tmp_dir, 0700) or die "Unable to mkdir($tmp_dir): $!\n";
system "./config.status Makefile && make gen && rsync -a @extra_files $tmp_dir/master/" and exit 1;
}
-
my
$last_touch = time;
+
our
$last_touch = time;
my(%patches, %local_patch);
my(%patches, %local_patch);
@@
-106,7
+106,7
@@
if ($incl_generated_files) {
system "rm -rf $tmp_dir";
}
system "rm -rf $tmp_dir";
}
-sleep 1
if $last_touch =
= time;
+sleep 1
while $last_touch >
= time;
system "git checkout $starting_branch" and exit 1;
exit;
system "git checkout $starting_branch" and exit 1;
exit;
@@
-128,7
+128,7
@@
sub update_patch
print "======== $patch ========\n";
print "======== $patch ========\n";
- sleep 1
if $incl_generated_files && $last_touch =
= time;
+ sleep 1
while $incl_generated_files && $last_touch >
= time;
if ($local_patch{$patch}) {
system "git checkout patch/$patch" and return 0;
} else {
if ($local_patch{$patch}) {
system "git checkout patch/$patch" and return 0;
} else {
@@
-156,7
+156,7
@@
sub update_patch
print OUT $description{$patch}, "\n";
if ($incl_generated_files) {
print OUT $description{$patch}, "\n";
if ($incl_generated_files) {
- system "./config.status Makefile && make gen && rsync -a @extra_files $tmp_dir/$patch/";
+ system "./config.status Makefile && make gen && rsync -a @extra_files $tmp_dir/$patch/"
and exit 1
;
}
$last_touch = time;
}
$last_touch = time;