Skip to content

Commit

Permalink
scripts: Remove original name and timestamp from compressed man pages
Browse files Browse the repository at this point in the history
This makes man pages in apt packages reproducible. The gzip options were copied from
https://salsa.debian.org/dpkg-team/dpkg/-/blob/1.22.6/scripts/Dpkg/Compression.pm?ref_type=tags#L65
  • Loading branch information
Biswa96 authored and TomJo2000 committed May 22, 2024
1 parent 073c85f commit 8f8d224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build/termux_step_massage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ termux_step_massage() {
find ./${ADDING_PREFIX}share/man -mindepth 1 -maxdepth 1 -type d ! -name man\* | xargs -r rm -rf

# Compress man pages with gzip:
find ./${ADDING_PREFIX}share/man -type f ! -iname \*.gz -print0 | xargs -r -0 gzip
find ./${ADDING_PREFIX}share/man -type f ! -iname \*.gz -print0 | xargs -r -0 gzip -9 -n

# Update man page symlinks, e.g. unzstd.1 -> zstd.1:
while IFS= read -r -d '' file; do
Expand Down

0 comments on commit 8f8d224

Please sign in to comment.