slackware-current/source/t/texlive/dump.unused.internal.libraries.from.sources.sh
Patrick J Volkerding 98045b7b19 Wed Mar 22 20:22:25 UTC 2023
a/coreutils-9.2-x86_64-2.txz:  Rebuilt.
  Don't link with OpenSSL's libcrypto, as it creates problems on machines that
  don't yet have openssl3 installed when /bin/sort suddenly depends upon
  libcrypto.so.3. Worked fine without this previously, so it shouldn't really
  make any difference. There's also a configure option to use the kernel's
  crypto routines if available, but for now we'll skip this.
  Thanks to rahrah.
a/kernel-firmware-20230320_bcdcfbc-noarch-1.txz:  Upgraded.
a/kernel-generic-6.1.21-x86_64-1.txz:  Upgraded.
a/kernel-huge-6.1.21-x86_64-1.txz:  Upgraded.
a/kernel-modules-6.1.21-x86_64-1.txz:  Upgraded.
d/kernel-headers-6.1.21-x86-1.txz:  Upgraded.
k/kernel-source-6.1.21-noarch-1.txz:  Upgraded.
l/adwaita-icon-theme-44.0-noarch-1.txz:  Upgraded.
n/gpgme-1.19.0-x86_64-1.txz:  Upgraded.
n/links-2.29-x86_64-1.txz:  Upgraded.
t/texlive-2023.230322-x86_64-1.txz:  Upgraded.
  Thanks to Johannes Schoepfer.
isolinux/initrd.img:  Rebuilt.
kernels/*:  Upgraded.
usb-and-pxe-installers/usbboot.img:  Rebuilt.
2023-03-22 22:37:07 +01:00

17 lines
893 B
Bash
Executable file

#!/bin/sh
# Repacks the texlive tarball to remove unused sources.
VERSION=${VERSION:-$(echo texlive-*source.tar.?z* | rev | cut -f 2 -d - | cut -f 1 -d - | rev)}
tar xf texlive-${VERSION}-source.tar.xz || exit 1
mv texlive-${VERSION}-source.tar.xz texlive-${VERSION}-source.tar.xz.orig
( cd texlive-${VERSION}-source/libs && rm -rf cairo freetype2 gd gmp graphite2 harfbuzz mpfr icu libpng pixman zlib )
( cd texlive-${VERSION}-source/utils && rm -rf asymptote )
( cd texlive-${VERSION}-source/utils && rm -rf texdoctk )
( cd texlive-${VERSION}-source/utils && rm -rf m-tx )
( cd texlive-${VERSION}-source/texk/texlive && rm -rf w*_wrapper )
tar cf texlive-${VERSION}-source.tar texlive-${VERSION}-source
rm -r texlive-${VERSION}-source
xz texlive-${VERSION}-source.tar
touch -r texlive-${VERSION}-source.tar.xz.orig texlive-${VERSION}-source.tar.xz
rm texlive-${VERSION}-source.tar.xz.orig