From fa604258caa460487309e1b017c3df1ce173fbf5 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Thu, 7 Nov 2013 11:27:35 -0600 Subject: misc/texscythe: Added (TeX Live texmf subsetter) Signed-off-by: Robby Workman --- misc/texscythe/contrib/make-slackware-plists.sh | 96 +++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 misc/texscythe/contrib/make-slackware-plists.sh (limited to 'misc/texscythe/contrib/make-slackware-plists.sh') diff --git a/misc/texscythe/contrib/make-slackware-plists.sh b/misc/texscythe/contrib/make-slackware-plists.sh new file mode 100644 index 0000000000..edfe84344d --- /dev/null +++ b/misc/texscythe/contrib/make-slackware-plists.sh @@ -0,0 +1,96 @@ +#!/bin/sh + +# This only requires the big texlive-$VERSION-extra.tar.xz and +# texlive-$VERSION-extra.tar.xz tarballs to be present in $CWD + +# If texlive.tlpdb is not present, it will have to be obtained from +# subversion (based on the # release date), e.g. +# svn co -r {20130530} svn://tug.org/texlive/trunk/Master/tlpkg +# You can then copy tlpkg/texlive.tlpdb to $CWD + +set -eu + +VERSION=20130530 + +CWD=$(pwd) +TMF="$CWD/texlive-$VERSION-texmf"; + +rm -rf tmplists ; mkdir tmplists + +# Initialize the texscyther db +texscyther --initdb + +# Build a packaging list for all of the texmf stuff, but exclude docs and src +texscyther \ + --nodirs \ + --subset \ + --include scheme-full \ + --exclude scheme-full:doc scheme-full:src \ + --output-plist tmplists/full + +# Build a packaging list for the docs (bibarts is for DOS) +texscyther \ + --nodirs \ + --subset \ + --include scheme-full:doc \ + --exclude scheme-full:src bibarts \ + --output-plist tmplists/docs + +# Build a packaging list for the texmf sources +texscyther \ + --nodirs \ + --subset \ + --include scheme-full:src \ + --output-plist tmplists/src + +# These next bits could probably be done using the --regex option passed to +# texscyther, but I already know how to do it this way :-) + +# Filter some stuff out of texmf (build a ladder over UUOC if needed) +cat tmplists/full | \ + grep "texmf-dist/" | \ + grep -v "win32" \ + > full-packlist + +# Filter some stuff out of docs (use that ladder again) +cat tmplists/docs | \ + grep "texmf-dist/" | \ + grep -v "context/stubs/mswin/" | \ + grep -v "win32" | \ + grep -v "MinGW" \ + > docs-packlist + +# No filtering (for now) of src stuff +cat $CWD/tmplists/src > $CWD/src-packlist + +printf "Generating tarballs - please be patient...\n" + +rm -rf $TMF + +tar xf texlive-$VERSION-texmf.tar.xz +tar xf texlive-$VERSION-extra.tar.xz +mv texlive-$VERSION-extra/* $TMF && rmdir texlive-$VERSION-extra + +rm -rf tarballs ; mkdir tarballs + +printf "\tCreating tarballs/texlive-texmf-$VERSION.tar\n" +tar cf \ + tarballs/texlive-texmf-$VERSION.tar \ + -C $TMF \ + -T full-packlist + +printf "\tCreating tarballs/texlive-docs-$VERSION.tar\n" +tar cf \ + tarballs/texlive-docs-$VERSION.tar \ + -C $TMF \ + -T docs-packlist + +printf "\tCreating tarballs/texlive-src-$VERSION.tar\n" +tar cf \ + tarballs/texlive-src-$VERSION.tar \ + -C $TMF \ + -T src-packlist + +printf "Compressing tarballs - please be MOAR patient...\n" +xz -9 tarballs/*.tar + -- cgit v1.2.3