#!/bin/sh # Config prior to download/install of Microsoft Core Fonts for the Web # # (C) 2001 Eric Sharkey. # You may freely distribute this file under the terms of the GNU General # Public License, version 2 or later set -e archive=ttf_fonts.tar.gz # Source debconf library. . /usr/share/debconf/confmodule db_title "ROOT TTF Installer" # db_reset ttf-root-installer/blurb db_input high ttf-root-installer/blurb || true db_input high ttf-root-installer/dldir || true db_go db_get ttf-root-installer/dldir dldir=$RET while [ -n "$dldir" ] && \ [ `echo $dldir | tr [:upper:] [:lower:]` != "none" ] ; do BADDIR="" if test ! -f $dldir/$archive ; then BADDIR=1 ; fi if [ -n "$BADDIR" ] ; then db_fset ttf-root-installer/baddldir seen false db_fset ttf-root-installer/dldir seen false db_input critical ttf-root-installer/baddldir || true db_input critical ttf-root-installer/dldir || true db_go db_get ttf-root-installer/dldir dldir=`echo $RET | tr [:upper:] [:lower:] ` else break fi done if [ -z "$dldir" ] || [ `echo $dldir | tr [:upper:] [:lower:]` = "none" ]; then db_input high ttf-root-installer/savedir || true db_go db_get ttf-root-installer/savedir fi # # EOF #