summaryrefslogblamecommitdiffstats
path: root/printer/foomatic/CONFIGURE
blob: 24c2e0fc914fa3fb44b01f1e6cdbaedad2f73030 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                    

                                          








                                                                                 
                                                                

      
config_query_option  FOOMATIC_ENABLE_CONVERTER                            \
                     "Check to see if a file converter is installed?"  y  \
                     "--enable-file-converter-check"                      \
                     "--disable-file-converter-check"                     &&

if  [  "${FOOMATIC_ENABLE_CONVERTER}"  ==  "--enable-file-converter-check"  ];  then
    ##  Sorted in order of most to least installed per http://ledger.sourcemage.org/
    if    spell_ok  cups;      then
          FOOMATIC_FILE_CONVERTER=cups
    elif  spell_ok  cups-old;  then
          FOOMATIC_FILE_CONVERTER=cups-old
    elif  spell_ok  a2ps;      then
          FOOMATIC_FILE_CONVERTER=a2ps
    elif  spell_ok  enscript;  then
          FOOMATIC_FILE_CONVERTER=enscript
    elif  spell_ok  mpage;     then
          FOOMATIC_FILE_CONVERTER=mpage
    else
          config_query_list  FOOMATIC_FILE_CONVERTER                            \
                             "Which file converter would you like to install?"  \
                             cups cups-old a2ps  enscript  mpage
    fi
fi