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:
bass@bebop ~ $ ebookmerge.sh -r
* Dowloading list from http://lidn.sf.net…
* Dowloaded. Use -l for a list.
bass@bebop ~ $
* Dowloading list from http://lidn.sf.net…
* Dowloaded. Use -l for a list.
bass@bebop ~ $
bass@bebop ~ $ ebookmerge.sh -s sed
* Results for sed :
sed-3.02.tgz
bass@bebop ~ $
* Results for sed :
sed-3.02.tgz
bass@bebop ~ $
bass@bebop ~ $ ebookmerge.sh -l
bass@bebop ~ $ ebookmerge.sh -d sed-3.02
* Dowloading eBook sed-3.02 in /home/bass…
* Dowloaded.
bass@bebop ~ $
* Dowloading eBook sed-3.02 in /home/bass…
* Dowloaded.
bass@bebop ~ $
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 ~ $
* 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 ~ $
bass@bebop ~ $ ebookmerge.sh -u sed-3.02
* sed-3.02 will be deleted in 5 seconds….
* sed-3.02 was deleted.
bass@bebop ~ $
* sed-3.02 will be deleted in 5 seconds….
* sed-3.02 was deleted.
bass@bebop ~ $
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.
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



very nice. :D
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.
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.
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.
regards
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.
Hi,
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.
Thanks,
Olivier
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,
Olivier
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.
regards
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 :
http://htmlhelp.berlios.de/books/devhelp.php
don’t know if the ebooks here are up-to-date or not. Perhaps it could be used as an official mirror in ebookmerge ?
Try version 0.9.1 :)
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.”
echo
einfo “To download and insatll an Ebook : ”
@@ -147,22 +145,12 @@
if [ -n "$optr" ]
then
- 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.”
fi
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.
regards
still down, five months later.
Yes, so in the latest ebookmerge version you can choose the mirror witha simple option.
I will remove the LIDN in the next version.
regards