summaryrefslogtreecommitdiffstats
path: root/source/ap/ghostscript/dump.unused.internal.libraries.from.sources.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/ghostscript/dump.unused.internal.libraries.from.sources.sh')
-rwxr-xr-xsource/ap/ghostscript/dump.unused.internal.libraries.from.sources.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/ap/ghostscript/dump.unused.internal.libraries.from.sources.sh b/source/ap/ghostscript/dump.unused.internal.libraries.from.sources.sh
index c4f1ce802..5cc9daf00 100755
--- a/source/ap/ghostscript/dump.unused.internal.libraries.from.sources.sh
+++ b/source/ap/ghostscript/dump.unused.internal.libraries.from.sources.sh
@@ -8,8 +8,16 @@ VERSION=${VERSION:-$(echo ghostscript-*.tar.?z* | rev | cut -f 3- -d . | cut -f
tar xf ghostscript-${VERSION}.tar.xz || exit 1
mv ghostscript-${VERSION}.tar.xz ghostscript-${VERSION}.tar.xz.orig
( cd ghostscript-${VERSION} && rm -rf freetype jpeg lcms2 lcms2art/doc/* libpng libtiff png tiff zlib )
-# Dump this huge PDF:
-( cd ghostscript-${VERSION} && find . -name GS9_Color_Management.pdf -exec rm {} \; )
+# Dump huge PDFs:
+( cd ghostscript-${VERSION}
+ find . -name Ghostscript.pdf -exec rm {} \;
+ find . -name GS9_Color_Management.pdf -exec rm {} \;
+ rm -f doc/colormanage/figures/*.pdf
+ rm -f lcms2mt/doc/*
+ rm -f extract/test/*.pdf
+ rm -f toolbin/color/icc_creator/example/duotone.pdf toolbin/color/icc_creator/example/tritone.pdf toolbin/halftone/ETS/ei03.pdf
+ rm -f doc/pclxps/ghostpdl.pdf
+)
tar cf ghostscript-${VERSION}.tar ghostscript-${VERSION}
rm -r ghostscript-${VERSION}
plzip -9 -n 6 ghostscript-${VERSION}.tar