View | Details | Raw Unified
Collapse All | Expand All

(-) ebookmerge-0.9.1.orig (-16 / +4 lines)
 Lines 25-31    Link Here 
	c) RC_NOCOLOR=yes ;;
	c) RC_NOCOLOR=yes ;;
	l) optl=1 ;;
	l) optl=1 ;;
	r) optr=1 ;;
	r) optr=1 ;;
    m) optm=1 ;;
	i) opti="$OPTARG" ;;
	i) opti="$OPTARG" ;;
	d) optd="$OPTARG" ;;
	d) optd="$OPTARG" ;;
	s) opts="$OPTARG" ;;
	s) opts="$OPTARG" ;;
 Lines 78-84    Link Here 
    etab "${BOLD}-e NAME${NORMAL}  : ${BOLD}emerge${NORMAL} an eBook."
    etab "${BOLD}-e NAME${NORMAL}  : ${BOLD}emerge${NORMAL} an eBook."
    etab "${BOLD}-s EXPR${NORMAL}  : search eBook."
    etab "${BOLD}-s EXPR${NORMAL}  : search eBook."
    etab "${BOLD}-c     ${NORMAL}  : disable color."
    etab "${BOLD}-c     ${NORMAL}  : disable color."
    etab "${BOLD}-m     ${NORMAL}  : use mirror http://htmlhelp.berlios.de instead of LIDN."
    etab "${BOLD}-h     ${NORMAL}  : show this help."
    etab "${BOLD}-h     ${NORMAL}  : show this help."
    echo
    echo
    einfo "To download and insatll an Ebook : "
    einfo "To download and insatll an Ebook : "
 Lines 147-168    Link Here 
if [ -n "$optr" ] 
if [ -n "$optr" ] 
then
then
    if [ -n "$optm" ] ; then
    einfo "Dowloading list from http://htmlhelp.berlios.de..."
        einfo "Dowloading list from http://htmlhelp.berlios.de..."
    else
        einfo "Dowloading list from http://lidn.sf.net..."
    fi
    cd ${EBDIR}
    cd ${EBDIR}
    
    
    if [ -n "$optm" ] ; then
    wget -q http://htmlhelp.berlios.de/books/devhelp.php
        wget -q http://htmlhelp.berlios.de/books/devhelp.php
    cat devhelp.php | gawk -F\" '/ftp/{print $4}' | sed '1 d' > ${EBDIR}/.urls.ebook
        cat devhelp.php | gawk -F\" '/ftp/{print $4}' | sed '1 d' > ${EBDIR}/.urls.ebook
    rm devhelp.php
        rm devhelp.php
    else
        wget -q http://lidn.sourceforge.net/books_download.php
        cat books_download.php | gawk '/Location/{print $2}' | sed -e 's/<\/b>//' -e 's/<br>//' > ${EBDIR}/.urls.ebook
        rm books_download.php
    fi
   
   
    einfo "Dowloaded. Use ${BOLD}-l${NORMAL} for a list."
    einfo "Dowloaded. Use ${BOLD}-l${NORMAL} for a list."
fi
fi