From c3a23969863bda749804b2b07f1d87a08fcd5fca Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Thu, 20 Nov 2025 20:30:41 +0200 Subject: [PATCH] Fix to exclude `.github` from builds --- makemoduledeb.pl | 1 + makemodulerpm.pl | 1 + 2 files changed, 2 insertions(+) diff --git a/makemoduledeb.pl b/makemoduledeb.pl index 0cfc4f86a..b036f827f 100755 --- a/makemoduledeb.pl +++ b/makemoduledeb.pl @@ -241,6 +241,7 @@ if ($< == 0) { system("cd $usr_dir && chown -R root:bin ."); } 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"); if (-r "$usr_dir/$mod/EXCLUDE") { diff --git a/makemodulerpm.pl b/makemodulerpm.pl index 9d3b6fe01..c7e83a9be 100755 --- a/makemodulerpm.pl +++ b/makemodulerpm.pl @@ -263,6 +263,7 @@ my $ucprog = ucfirst($prog); system("/bin/mkdir -p /tmp/makemodulerpm"); system("cd $par && /bin/cp -rpL $source_mod /tmp/makemodulerpm/$mod"); 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");