diff options
author | Julian Smith <julian.smith@artifex.com> | 2022-01-17 19:10:04 +0000 |
---|---|---|
committer | Julian Smith <julian.smith@artifex.com> | 2022-02-03 17:17:00 +0000 |
commit | 6468e0dadf670ae5832d370d888767f2767073a2 (patch) | |
tree | 7c8e0abbb215d9af5c4d13d562438d18f4e2107d /toolbin | |
parent | 08aa1b42d078c5760c18a5e35ab9d76e076ca718 (diff) | |
download | ghostpdl-6468e0dadf670ae5832d370d888767f2767073a2.tar.gz |
toolbin/localcluster/clusterpush.pl: Optionally expand softlinks with rsync.
New -L option adds -L to rsync command.
Diffstat (limited to 'toolbin')
-rwxr-xr-x | toolbin/localcluster/clusterpush.pl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/toolbin/localcluster/clusterpush.pl b/toolbin/localcluster/clusterpush.pl index 2f2515519..7d998e7e8 100755 --- a/toolbin/localcluster/clusterpush.pl +++ b/toolbin/localcluster/clusterpush.pl @@ -7,8 +7,9 @@ use Data::Dumper; my $verbose=0; -# bmpcmp usage: [gs] [pcl] [xps] [mupdf] [mujstest] [murun] [mudrawpy] [runtests] [extract] [extractmu] [extractgs] [bmpcmp] [arm] [lowres] [highres] [32] [pdfwrite] [ps2write] [xpswrite] [nopdfwrite] [relaxtimeout] [extended] [smoke] [cull] [avx2] [$user] | abort - +# bmpcmp usage: [-L] [gs] [pcl] [xps] [mupdf] [mujstest] [murun] [mudrawpy] [runtests] [extract] [extractmu] [extractgs] [bmpcmp] [arm] [lowres] [highres] [32] [pdfwrite] [ps2write] [xpswrite] [nopdfwrite] [relaxtimeout] [extended] [smoke] [cull] [avx2] [$user] | abort +# +# -L passes -L to rsync, which expands softlinks. my %products=('abort' =>1, @@ -31,6 +32,7 @@ my %products=('abort' =>1, 'muwasm'=>1, 'extractgs'=>1); +my $rsync_L = ""; my $user; my $product=""; my $filters=""; @@ -85,6 +87,8 @@ while ($t1=shift) { $nopdfwrite="nopdfwrite"; } elsif ($t1 eq "timeout" || $t1 eq "relaxtimeout") { $relaxTimeout="relaxTimeout"; + } elsif ($t1 eq "-L") { + $rsync_L="L"; } elsif ($t1=~m/^-/ || $t1=~m/^\d/) { $command.=$t1.' '; } elsif ($t1 =~ m/ifilter=.*/) { @@ -213,7 +217,7 @@ if ($msys) { $hostpath="regression:$dir/$user/$directory"; } -my $cmd="rsync -axcz"; +my $cmd="rsync -axcz" . $rsync_L; if ($product eq "extractgs") { $cmd .= "L"; # expand links. |