summaryrefslogtreecommitdiff
path: root/loolwsd-systemplate-setup
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2018-03-10 13:50:43 +0000
committerMichael Meeks <michael.meeks@collabora.com>2018-03-10 13:50:43 +0000
commit501d36824b6fd7a99383c4d0be8c67516bef84f4 (patch)
tree335f234a4835f6bb3dc598b6f6f548926f0e4982 /loolwsd-systemplate-setup
parent04539cc00ce3bea1483b882244408ac838a1a623 (diff)
Clean up un-used pcf fonts from the systemplate to shrink it.
Also drop ~/docs/ copying for devs - too generic a name. Change-Id: Ib9416e23fa7f09ec923e03551c6c7b85bc3defe3
Diffstat (limited to 'loolwsd-systemplate-setup')
-rwxr-xr-xloolwsd-systemplate-setup6
1 files changed, 4 insertions, 2 deletions
diff --git a/loolwsd-systemplate-setup b/loolwsd-systemplate-setup
index 263a489a9..56ca87d20 100755
--- a/loolwsd-systemplate-setup
+++ b/loolwsd-systemplate-setup
@@ -80,13 +80,15 @@ if [ -h usr/share/fonts/ghostscript ]; then
cp -r -p -L /usr/share/ghostscript/fonts usr/share/ghostscript
fi
+# Remove obsolete & unused bitmap fonts
+find usr/share -name '*.pcf' | xargs rm -f
+find usr/share -name '*.pcf.gz' | xargs rm -f
+
# Debugging only hackery to avoid confusion.
if test "z$ENABLE_DEBUG" != "z" -a "z$HOME" != "z"; then
echo "Copying development users's fonts into systemplate"
mkdir -p $CHROOT/$HOME
- mkdir -p $CHROOT/$HOME/docs
test -d $HOME/.fonts && cp -r -p -L $HOME/.fonts $CHROOT/$HOME
- test -d $HOME/docs && cp -r -p -L $HOME/docs $CHROOT/$HOME
fi
exit 0