diff tools/makeinst-script.sh.in @ 4254:7f2d5c8c4491

installer: update fc cache during install (Bug #45458) * tools/makeinst-script.sh.in: call fc_update.bat in installer script * installer-files/fc_update.bat: new file * binary-dist-rules.mk: copy fc_update.bat to dist * dist-files.mk: add fc_update.bat
author John D
date Thu, 01 Dec 2016 13:44:05 -0500
parents 393571034f24
children ee1ae5d1fd88
line wrap: on
line diff
--- a/tools/makeinst-script.sh.in	Mon Nov 21 17:11:21 2016 -0500
+++ b/tools/makeinst-script.sh.in	Thu Dec 01 13:44:05 2016 -0500
@@ -227,12 +227,15 @@
   File "$OCTAVE_SOURCE/octave.vbs"
   File "$OCTAVE_SOURCE/octave-firsttime.vbs"
 
+  File "$OCTAVE_SOURCE/fc_update.bat"
+
   ; distro files
 EOF
   if [ -f $OCTAVE_SOURCE/cmdshell.bat ]; then 
     echo "File '$OCTAVE_SOURCE/cmdshell.bat'" >> $OUTFILE
   fi
 
+
 # insert the files
   IFS=$'\n'
   for f in $(find $OCTAVE_SOURCE -type d -printf "%P\n"); do
@@ -250,6 +253,10 @@
  WriteINIStr "\$INSTDIR\\bin\\qt.conf" "Paths" "Prefix" "\$0"
  WriteINIStr "\$INSTDIR\\bin\\qt.conf" "Paths" "Translations" "translations"
  Pop \$0
+
+ ; run fc-cache updater
+ DetailPrint "Building font cache (may take a while)"
+ ExecWait "\$INSTDIR\\fc_update.bat"
 SectionEnd
 
 Section make_uninstaller