From 101fadca6c303e9392a4c41edd417fe4a8e682d6 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sun, 20 Jun 2021 21:11:38 +0200 Subject: [PATCH] Related: #1960650, add missing create-clean-texlive.sh to generate clean tarball from released build tarballs --- create-clean-texlive.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 create-clean-texlive.sh diff --git a/create-clean-texlive.sh b/create-clean-texlive.sh new file mode 100755 index 0000000..bf0711f --- /dev/null +++ b/create-clean-texlive.sh @@ -0,0 +1,21 @@ +#! /bin/sh +v=20200406 +s=texlive-$v-source.tar.xz +p=${s%.tar.xz} + +echo create the clean texlive source, please wait... +# get the texlive original source +if [ ! -f $s ] ; then + wget http://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2020/$s + if [ ! -f $s ] ; then + echo download $s failed! + exit 1 + fi +fi +tar Jxf $s +# remove files with bad licenses, don't embeded zziplib but build with system lib +rm -f $p/libs/zziplib/zziplib-src/docs/zzipdoc/{options.py,match.py} + +# create clean texlive source +tar Jcvf $p-clean.tar.xz $p +echo clean texlive source $p-clean.tar.xz is created.