contrib/OWB: add correct SDL dependency, fix compilers used
[AROS-Contrib.git] / freetype1 / contrib / ftos2 / uninstall.cmd
blobbf13f68e717e976366644ff3dc925f0d5c68fe65
1 /* */
2 call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
3 call SysLoadFuncs
6 say "This utility will remove the FreeType/2 font driver and install "
7 say "the original TRUETYPE.DLL if it exists. If you do not wish to"
8 say "continue, please just press ENTER. Otherwise please type ""y"""
10 pull letter
11 if letter <> "Y" then exit
13 /* Find drive where OS/2 is installed */
14 bootdrive = SysSearchPath('PATH', 'OS2.INI')
15 bootdrive = left(bootdrive, 1)
17 app = "PM_Font_Drivers"
18 key = "TRUETYPE"
20 /* look for TRUETYPE.DLL */
21 rc = SysFileTree(left(bootdrive,1) || ":\OS2\DLL\TRUETYPE.DLL", "file", "F")
23 if file.0 = 1 then do
24 say "Restoring TRUETYPE.DLL..."
25 val = "\OS2\DLL\TRUETYPE.DLL" || d2c(0)
26 SysIni('BOTH', app, key, val)
27 end
28 else do
29 say "Uninstalling FREETYPE.DLL..."
30 SysIni('BOTH', app, key, "DELETE:")
31 end
33 say "FTIFI is uninstalled. Please reboot."
34 pause