From 9587d3d0914bc940afc2b0eb80813e5828692100 Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Sun, 17 May 2026 16:24:19 -0500 Subject: [PATCH] Exclude t and xt from packages --- makedist.pl | 5 +++-- makemoduledeb.pl | 1 + makemodulerpm.pl | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/makedist.pl b/makedist.pl index 963cc379e..7c2cb2520 100755 --- a/makedist.pl +++ b/makedist.pl @@ -111,8 +111,9 @@ if (!$release || !-d "$tardir/$dir") { next if ($f =~ /^\./ || $f =~ /\.git$/ || $f =~ /\.(tar|wbm|wbt)\.gz$/ || $f eq "README.md" || $f =~ /^makemodule.*\.pl$/ || - $f eq "linux.sh" || $f eq "freebsd.sh" || - $f eq "LICENCE" || $f eq "version"); + $f eq "linux.sh" || $f eq "freebsd.sh" || + $f eq "LICENCE" || $f eq "version" || + (-d "$m/$f" && ($f eq "t" || $f eq "xt"))); $flist .= " $m/$f"; } closedir(DIR); diff --git a/makemoduledeb.pl b/makemoduledeb.pl index a80da26de..2588cbc06 100755 --- a/makemoduledeb.pl +++ b/makemoduledeb.pl @@ -244,6 +244,7 @@ system("find $usr_dir -name .git | xargs rm -rf"); system("find $usr_dir -name .github | xargs rm -rf"); system("find $usr_dir -name RELEASE | xargs rm -rf"); system("find $usr_dir -name RELEASE.sh | xargs rm -rf"); +system("find $usr_dir -type d \\( -name t -o -name xt \\) | xargs rm -rf"); if (-r "$usr_dir/$mod/EXCLUDE") { system("cd $usr_dir/$mod && cat EXCLUDE | xargs rm -rf"); system("rm -f $usr_dir/$mod/EXCLUDE"); diff --git a/makemodulerpm.pl b/makemodulerpm.pl index 36570f457..69e342f66 100755 --- a/makemodulerpm.pl +++ b/makemodulerpm.pl @@ -266,7 +266,7 @@ system("/usr/bin/find /tmp/makemodulerpm -name .git | xargs rm -rf"); system("/usr/bin/find /tmp/makemodulerpm -name .github | xargs rm -rf"); system("/usr/bin/find /tmp/makemodulerpm -name RELEASE | xargs rm -rf"); system("/usr/bin/find /tmp/makemodulerpm -name RELEASE.sh | xargs rm -rf"); -system("/usr/bin/find /tmp/makemodulerpm -name t | xargs rm -rf"); +system("/usr/bin/find /tmp/makemodulerpm -type d \\( -name t -o -name xt \\) | xargs rm -rf"); if (-r "/tmp/makemodulerpm/$mod/EXCLUDE") { system("cd /tmp/makemodulerpm/$mod && cat EXCLUDE | xargs rm -rf"); system("rm -f /tmp/makemodulerpm/$mod/EXCLUDE");