So long time without post :)

Last night i uploaded a new version(0.9) of ebookmerge to portage. Ebookmerge is a tool for manage ebooks in gentoo per user. All app-doc/ebooks-* has been masked pending removal.
With ebookmerge you can:

  • Retrieve an update listdirectly from the lidn web:
  • bass@bebop ~ $ ebookmerge.sh -r
    * Dowloading list from http://lidn.sf.net…
    * Dowloaded. Use -l for a list.
    bass@bebop ~ $
  • You can search:
  • bass@bebop ~ $ ebookmerge.sh -s sed
    * Results for sed :
    bass@bebop ~ $
  • Show the list of aviable and installed ebooks:
  • bass@bebop ~ $ ebookmerge.sh -l
  • Download an ebook to current directory:
  • bass@bebop ~ $ ebookmerge.sh -d sed-3.02
    * Dowloading eBook sed-3.02 in /home/bass…
    * Dowloaded.
    bass@bebop ~ $
  • Emerge the ebook. It download the ebook and install it in DevHelp repository (you need devhelp >=0.10)
  • bass@bebop ~ $ ebookmerge.sh -e textutils-2.0.tgz
    * Dowloading eBook in /tmp/tmp.bo2pCv…
    * Dowloaded.
    * Preparing to install /tmp/tmp.bo2pCv/textutils-2.0.tgz in DevHelp…
    * unpacking /tmp/tmp.bo2pCv/textutils-2.0.tgz…
    * /tmp/tmp.bo2pCv/textutils-2.0.tgz installed in DevHelp :-)
    bass@bebop ~ $
  • Uninstall an ebook:
  • bass@bebop ~ $ ebookmerge.sh -u sed-3.02
    * sed-3.02 will be deleted in 5 seconds….
    * sed-3.02 was deleted.
    bass@bebop ~ $
  • And of course the help:
  • bass@bebop ~ $ ebookmerge.sh -h
    eBook downloader for Gentoo Linux [ v 0.9 ]
    by bass@gentoo.org* Usage: ebookmerge.sh options (-hlrid)-l : list aviable eBooks and installed eBooks.
    -r : retrieve/refresh eBooks list.
    -d NAME : download eBook.
    -i NAME : install eBook previously dowloaded to devhelp.
    -u NAME : uninstall eBook. Don’t use confirmation.
    -e NAME : emerge an eBook.
    -s EXPR : search eBook.
    -c : disable color.
    -h : show this help.

    * To download and insatll an Ebook :
    * ebookmerge.sh -e bashref-2.05a.tgz or other eBook name.

    * This script actually doesn’t works with relative paths.
    bass@bebop ~ $

    It’s more easy to mantain this script that a lot of lil ebuilds and an eclass…
    Any bug or sugest please mail me or bug.gentoo.org.

    In other hand, my picts fo the USA trip are in my gallery


    14 Responses to “ebookmerge”

    1. 1 dirtyepic
      30 November, 2005 at 07:59 am

      very nice. :D

    2. 2 alex
      30 December, 2005 at 09:16 am

      Where is app-doc/ebook-pygtk going? It’s not available on LiDN, but your Portage mask of ebooks is blocking the existing ebuild for it. Please unmask it or get it on LiDN so it can be accessed through ebookmerge.

    3. 3 alex
      30 December, 2005 at 09:21 am

      Where is app-doc/ebook-pygtk going? It’s not available from LiDN but your Portage mask of ebooks has it blocked. Please unmask it or have it added to LiDN so it will be available through ebookmerge.

    4. 30 December, 2005 at 22:30 pm

      Alex, the app-doc/ebook-pygtk ebuilds get the ebokos from the LIDN webpage, and ebookmerge retrieve the list from the same webpage. So the book is not in the LIDN webpage the app-doc/ebook-* will not work.
      I dont have any relation with LIDN so you can write them directly.


    5. 5 Lane
      27 February, 2006 at 07:02 am

      Why remove ebooks from portage? Why make per-user copies? What’s the deal? For god’s sake, can you imagine 50 or more users with their own copies of every single book? Please, either unmask the ebuilds or fix your script to install single copies of ebooks, system-wide.

    6. 11 March, 2006 at 18:34 pm


      LIDN seems to have a problem, or is it ebookmerge.sh ?
      see :

      ebookmerge.sh -r
      * Dowloading list from http://lidn.sf.net
      cat: books_download.php: No such file or directory
      rm: cannot remove `books_download.php’: No such file or directory
      * Dowloaded. Use -l for a list.

      My gentoo is a fresh install, up-to-date portage tree and world.


    7. 11 March, 2006 at 18:36 pm

      Sorry, this is a SF problem…

      see http://lidn.sourceforge.net/, this seems *bad*. Because of that nobody can get *any* ebooks on gentoo now… isn’t there any mirror ??

      thanks in advance,


    8. 11 March, 2006 at 23:26 pm

      Reply to Lane:

      less ebuild in portage mean a fastest portage :). So what happen dif one user just need python ebooks, and other user perl ebooks?
      If you install all the ebooks system-wide the startuop devhelp app will be very slow.

      Reply to Olivier:

      Sorry i dont know any dev of the LIDN project, and i dont know what happen right now with it. I will try to write an emil to them.
      About the mirror.. i sadly doubt it.


    9. 26 March, 2006 at 23:11 pm

      15 days later, LIDN seems still badly down… Did you get some news from them ?

      Alternately, I found something which seems to be a mirror :


      don’t know if the ebooks here are up-to-date or not. Perhaps it could be used as an official mirror in ebookmerge ?

    10. 11 April, 2006 at 00:19 am

      Try version 0.9.1 :)

    11. 11 DrChandra
      19 June, 2006 at 21:00 pm

      This patch will remove the broken lidn.sf.net.site, and the alternate mirror support. The script still works with the berlios.de site.

      — ebookmerge-0.9.1.orig 2006-06-19 14:37:41.000000000 -0500
      +++ ebookmerge-0.9.1 2006-06-19 14:39:03.000000000 -0500
      @@ -25,7 +25,6 @@
      c) RC_NOCOLOR=yes ;;
      l) optl=1 ;;
      r) optr=1 ;;
      – m) optm=1 ;;
      i) opti=”$OPTARG” ;;
      d) optd=”$OPTARG” ;;
      s) opts=”$OPTARG” ;;
      @@ -78,7 +77,6 @@
      etab “${BOLD}-e NAME${NORMAL} : ${BOLD}emerge${NORMAL} an eBook.”
      etab “${BOLD}-s EXPR${NORMAL} : search eBook.”
      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.”
      einfo “To download and insatll an Ebook : ”
      @@ -147,22 +145,12 @@

      if [ -n “$optr” ]
      – if [ -n “$optm” ] ; then
      – einfo “Dowloading list from http://htmlhelp.berlios.de…”
      – else
      – einfo “Dowloading list from http://lidn.sf.net…”
      – fi
      + einfo “Dowloading list from http://htmlhelp.berlios.de…”
      cd ${EBDIR}

      – if [ -n “$optm” ] ; then
      – wget -q http://htmlhelp.berlios.de/books/devhelp.php
      – cat devhelp.php | gawk -F\” ‘/ftp/{print $4}’ | sed ‘1 d’ > ${EBDIR}/.urls.ebook
      – rm devhelp.php
      – else
      – wget -q http://lidn.sourceforge.net/books_download.php
      – cat books_download.php | gawk ‘/Location/{print $2}’ | sed -e ‘s///’ -e ‘s///’ > ${EBDIR}/.urls.ebook
      – rm books_download.php
      – fi
      + wget -q http://htmlhelp.berlios.de/books/devhelp.php
      + cat devhelp.php | gawk -F\” ‘/ftp/{print $4}’ | sed ‘1 d’ > ${EBDIR}/.urls.ebook
      + rm devhelp.php

      einfo “Dowloaded. Use ${BOLD}-l${NORMAL} for a list.”

    12. 19 June, 2006 at 23:13 pm

      You want to remove completly the LIDN support? LIDN is really death?

      i prefer wait a lil and try to conact with somebody of LIDN.
      So thanks for your patch. If in a month or simila ri dont contact with them i will use it.


    13. 13 dirtyepic
      19 November, 2006 at 21:51 pm

      still down, five months later.

    14. 20 November, 2006 at 10:03 am

      Yes, so in the latest ebookmerge version you can choose the mirror witha simple option.

      I will remove the LIDN in the next version.


    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out /  Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out /  Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )


    Connecting to %s


    Flickr Photos


    %d bloggers like this: