mirror of
https://github.com/webmin/webmin.git
synced 2026-06-04 20:30:22 +01:00
Exclude t and xt from packages
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user