El Jueves, 13 de Abril de 2006 22:04, George Boudreau escribió:
> An ugly method would be to test for the existence of 'general.ent' in
> the directory.
> if [[ "${WC}" = 1 ]]; then
> # pretty print on the screen is directory is valid
> validate_dir -z -d
> # test for the existence of the file..
> [[ ! -e ${BOOK}/general.ent ]] && write_error_and_die
> else
> validate_against_str " x${PROGNAME}-developmentx xlfs-udev_updatex "
> fi
>
> This is not perfect and it assumes 'if one file exists then all files
> exist'
Well, that could work as a basic sanity test.
After all, if the user is pointing to a wrong directory is most likely that
the stylesheets will not generate scripts and/or the Makefile will bomb at
the begining.
--
Manuel Canales Esparcia
Usuario de LFS nº2886: http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.com
TLDP-ES: http://es.tldp.org
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page