Exclude t and xt from packages

This commit is contained in:
Joe Cooper
2026-05-17 16:24:19 -05:00
parent 21e3367a9c
commit 9587d3d091
3 changed files with 5 additions and 3 deletions

View File

@@ -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);

View File

@@ -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");

View File

@@ -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");