mirror of
git://slackware.nl/current.git
synced 2025-01-20 22:26:48 +01:00
16 lines
732 B
Bash
16 lines
732 B
Bash
|
#!/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 mpfr icu libpng pixman zlib )
|
||
|
( cd texlive-${VERSION}-source/utils && rm -rf asymptote )
|
||
|
tar cf texlive-${VERSION}-source.tar texlive-${VERSION}-source
|
||
|
rm -r texlive-${VERSION}-source
|
||
|
#xz -9 texlive-${VERSION}-source.tar
|
||
|
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
|