[Libreoffice-commits] online.git: loolwsd-systemplate-setup

Michael Meeks michael.meeks at collabora.com
Sat Mar 10 13:52:27 UTC 2018


 loolwsd-systemplate-setup |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 501d36824b6fd7a99383c4d0be8c67516bef84f4
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Sat Mar 10 13:50:43 2018 +0000

    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

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


More information about the Libreoffice-commits mailing list