← Commit list

c2a04c080d

Viktor Szakats
Viktor Szakats
2026-08-29
SUCCESS Duration: 427s

Subject

distfiles.sh: check tarball for unexpected files

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

.github/scripts/distfiles.sh+32 -2
@@ -9,7 +9,9 @@
set -eu
gitonly=".git*
-^.*
+^.circleci/*
+^.dir-locals.el
+^.mailmap
^appveyor.*
^GIT-INFO.md
^README.md
@@ -28,6 +30,24 @@ gitonly=".git*
^scripts/release-notes.pl
^scripts/singleuse.pl"
+taronly="^Makefile.in$
+/Makefile.in$
+^aclocal.m4$
+^compile$
+^configure$
+^config.guess$
+^config.sub$
+^depcomp$
+^docs/RELEASE-TOOLS.md$
+^docs/libcurl/libcurl-symbols.md$
+^install-sh$
+^lib/curl_config.h.in$
+^ltmain.sh$
+^m4/libtool.m4$
+^m4/lt*.m4$
+^missing$
+^src/tool_hugehelp.c$"
+
tarfiles="$(mktemp)"
gitfiles="$(mktemp)"
@@ -48,7 +68,17 @@ echo 'Only in tarball:'
echo "${dif}" | grep '^-' || true
echo
+exitcode=0
+
+echo 'Unexpected in tarball:'
+if echo "${dif}" | grep '^-' | sed 's|^-||g' \
+ | grep -v -E "($(printf '%s' "${taronly}" | tr $'\n' '|' | sed -e 's|\.|\\.|g' -e 's|\*|.+|g'))$"; then
+ exitcode=1
+fi
+
echo 'Missing from tarball:'
if echo "${dif}" | grep '^+'; then
- exit 1
+ exitcode=1
fi
+
+exit "${exitcode}"