comparison 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
comparison
equal deleted inserted replaced
4253:32a7bea19bb1 4254:7f2d5c8c4491
225 SetOutPath "\$INSTDIR" 225 SetOutPath "\$INSTDIR"
226 File "$OCTAVE_SOURCE/octave.bat" 226 File "$OCTAVE_SOURCE/octave.bat"
227 File "$OCTAVE_SOURCE/octave.vbs" 227 File "$OCTAVE_SOURCE/octave.vbs"
228 File "$OCTAVE_SOURCE/octave-firsttime.vbs" 228 File "$OCTAVE_SOURCE/octave-firsttime.vbs"
229 229
230 File "$OCTAVE_SOURCE/fc_update.bat"
231
230 ; distro files 232 ; distro files
231 EOF 233 EOF
232 if [ -f $OCTAVE_SOURCE/cmdshell.bat ]; then 234 if [ -f $OCTAVE_SOURCE/cmdshell.bat ]; then
233 echo "File '$OCTAVE_SOURCE/cmdshell.bat'" >> $OUTFILE 235 echo "File '$OCTAVE_SOURCE/cmdshell.bat'" >> $OUTFILE
234 fi 236 fi
237
235 238
236 # insert the files 239 # insert the files
237 IFS=$'\n' 240 IFS=$'\n'
238 for f in $(find $OCTAVE_SOURCE -type d -printf "%P\n"); do 241 for f in $(find $OCTAVE_SOURCE -type d -printf "%P\n"); do
239 winf=`echo $f | sed 's,/,\\\\,g'` 242 winf=`echo $f | sed 's,/,\\\\,g'`
248 Push \$0 251 Push \$0
249 \${StrRep} '\$0' '\$INSTDIR' '\\' '/' 252 \${StrRep} '\$0' '\$INSTDIR' '\\' '/'
250 WriteINIStr "\$INSTDIR\\bin\\qt.conf" "Paths" "Prefix" "\$0" 253 WriteINIStr "\$INSTDIR\\bin\\qt.conf" "Paths" "Prefix" "\$0"
251 WriteINIStr "\$INSTDIR\\bin\\qt.conf" "Paths" "Translations" "translations" 254 WriteINIStr "\$INSTDIR\\bin\\qt.conf" "Paths" "Translations" "translations"
252 Pop \$0 255 Pop \$0
256
257 ; run fc-cache updater
258 DetailPrint "Building font cache (may take a while)"
259 ExecWait "\$INSTDIR\\fc_update.bat"
253 SectionEnd 260 SectionEnd
254 261
255 Section make_uninstaller 262 Section make_uninstaller
256 ; Write the uninstall keys for Windows 263 ; Write the uninstall keys for Windows
257 SetOutPath "\$INSTDIR" 264 SetOutPath "\$INSTDIR"