]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Add missing doc files to Linux/macOS binary release packages
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 1 Oct 2025 16:34:09 +0000 (18:34 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 1 Oct 2025 17:57:19 +0000 (19:57 +0200)
ci/prepare-release
misc/Makefile.posix-binary-release

index 2ac0da099d35545f6ad88bafc2b23e1b20198b2a..58a2091aa4242400dd2eedf8bad46b471c047853 100755 (executable)
@@ -31,11 +31,28 @@ prepare_posix_binary_release() {
     cp "${arch}-binary/ccache" "${name}"
     chmod +x "${name}/ccache"
     cp misc/Makefile.posix-binary-release "${name}/Makefile"
+    cp GPL-3.0.txt README.md "${name}"
     cp docs/install/share/doc/ccache/* "${name}"
     cp docs/install/share/man/man1/ccache.1 "${name}"
     tar -caf "release/${name}.tar.${compression}" "${name}"
 }
 
+test_posix_binary_release() {
+    local arch=$1
+    local compression=$2
+
+    local name="ccache-${VERSION}-${arch}"
+
+    tmpdir=$(mktemp -d)
+    tar -C "${tmpdir}" -xf "${PWD}/release/${name}.tar.${compression}"
+    (
+        cd "${tmpdir}/${name}"
+        make install prefix=/foo/bar DESTDIR=destdir
+        destdir/foo/bar/bin/ccache --version
+    )
+    rm -r "${tmpdir}"
+}
+
 prepare_windows_binary_release() {
     local arch=$1
 
@@ -58,4 +75,6 @@ prepare_windows_binary_release windows-aarch64
 prepare_windows_binary_release windows-i686
 prepare_windows_binary_release windows-x86_64
 
+test_posix_binary_release linux-x86_64 xz
+
 ls -l . release
index 1d7a7b49fa4abb16861a9daf99bec124d5c5d704..546a809d20ce4a3a544e1bef502a723b13ef993e 100644 (file)
@@ -9,14 +9,13 @@ sysconfdir = $(prefix)/etc
 
 default_sysconfdir = /usr/local/etc
 doc_files = \
-    LICENSE.md \
+    GPL-3.0.txt \
     LICENSE.html \
-    MANUAL.md \
+    LICENSE.md \
     MANUAL.html \
-    NEWS.md \
+    MANUAL.md \
     NEWS.html \
-    GPL-3.0.txt \
-    LICENSE.md \
+    NEWS.md \
     README.md
 
 PYTHON = python3