From ed427173dec10495a074d041bff30876ff1709cb Mon Sep 17 00:00:00 2001 From: Sebastian Dziallas Date: Thu, 03 Dec 2009 12:17:17 +0000 Subject: remove e-books for now and focus on online wiki page --- diff --git a/copy-to-datastore.py b/copy-to-datastore.py index af0c8f0..0831b35 100755 --- a/copy-to-datastore.py +++ b/copy-to-datastore.py @@ -67,97 +67,6 @@ def create_entry(filename, meta): create_content_file(metadata_path, 'tags', tags) files = ( - ("pg3455-images.epub", - {"title": "Nederlandsche Sagen en Legenden van Josef Cohen", - "mime_type": "application/epub+zip", - "description": "", - "tags": "Legends", - }), - - ("pg11339-images.epub", - {"title": "Aesop's Fables by Aesop", - "mime_type": "application/epub+zip", - "description": "a new translation", - "tags": "Juvenile Belles Lettres", - }), - - ("pg11589-images.epub", - {"title": "Les Voyages Extraordinaires de Jules Verne", - "mime_type": "application/epub+zip", - "description": "Couronnés par l'Académie française", - "tags": "Romance Literature", - }), - - ("pg17157-images.epub", - {"title": "Gulliver's Travels by Jonathan Swift", - "mime_type": "application/epub+zip", - "description": "Into Several Remote Regions of the World", - "tags": "Juvenile Belles Lettres", - }), - - ("pg17161-images.epub", - {"title": "Max und Moritz von Wilhelm Busch", - "mime_type": "application/epub+zip", - "description": "Eine Bubengeschichte in sieben Streichen", - "tags": "Juvenile Belles Lettres", - }), - - ("pg17396-images.epub", - {"title": "The Secret Garden by Frances Hodgson Burnett", - "mime_type": "application/epub+zip", - "description": "", - "tags": "Juvenile Belles Lettres", - }), - - ("pg22566-images.epub", - {"title": "Dorothy and the Wizard in Oz by L. Frank Baum", - "mime_type": "application/epub+zip", - "description": "", - "tags": "Juvenile Belles Lettres", - }), - - ("pg24022-images.epub", - {"title": "A Christmas Carol by Charles Dickens", - "mime_type": "application/epub+zip", - "description": "", - "tags": "Christmas Stories", - }), - - ("pg25074-images.epub", - {"title": "Novelas y cuentos by Serafín Estébanez Calderón", - "mime_type": "application/epub+zip", - "description": "", - "tags": "Romance Literature", - }), - - ("pg28314-images.epub", - {"title": "The Yellow Fairy Book by Andrew Lang", - "mime_type": "application/epub+zip", - "description": "", - "tags": "Juvenile Belles Lettres", - }), - - ("pg28371-images.epub", - {"title": "Le avventure d'Alice nel paese delle meraviglie di Lewis Carroll", - "mime_type": "application/epub+zip", - "description": "", - "tags": "Juvenile Belles Lettres", - }), - - ("pg28885-images.epub", - {"title": "Alice's Adventures in Wonderland by Lewis Carroll", - "mime_type": "application/epub+zip", - "description": "", - "tags": "Juvenile Belles Lettres", - }), - - ("pg30510-images.epub", - {"title": "Perolas e Diamantes de Jacob Grimm e Wilhelm Grimm", - "mime_type": "application/epub+zip", - "description": "Contos Infantis", - "tags": "Juvenile Belles Lettres", - }), - ("south_america.pdf", {"title": "South America World Factbook Map", "mime_type": "application/pdf", diff --git a/soas-aslo-and-content.ks b/soas-aslo-and-content.ks index 21a6f0e..60d7e83 100644 --- a/soas-aslo-and-content.ks +++ b/soas-aslo-and-content.ks @@ -100,31 +100,6 @@ for pdf in $PDFS ; do cp -p $bundle $BUNDLES_DIR done -# e-books from project gutenberg -EPUB="$EPUB 3455" # Nederlandsche Sagen en Legenden -EPUB="$EPUB 11339" # Aesop's Fables -EPUB="$EPUB 11589" # Les Voyages Extraordinaires -EPUB="$EPUB 17157" # Gulliver's Travels -EPUB="$EPUB 17161" # Max und Moritz -EPUB="$EPUB 17396" # The Secret Garden -EPUB="$EPUB 22566" # Dorothy and the Wizard in Oz -EPUB="$EPUB 24022" # A Christmas Carol -EPUB="$EPUB 25074" # Novelas y cuentos -EPUB="$EPUB 28314" # The Yellow Fairy Book -EPUB="$EPUB 28371" # Le avventure d'Alice nel paese delle meraviglie -EPUB="$EPUB 28885" # Alice's Adventures in Wonderland -EPUB="$EPUB 30510" # Perolas e Diamantes - -for epub in $EPUB ; do - url=http://www.gutenberg.org/cache/epub/$epub/pg$epub-images.epub - remote_file=$(basename $(curl -4 -s -L -w %{url_effective} -I $url | tail -1)) - bundle=$CACHE_DIR/$remote_file - if [ ! -f $bundle ] ; then - curl -s -4 -L $url > $bundle - fi - cp -p $bundle $BUNDLES_DIR -done - # get the script to install the activities cp -p $WD/../install-activity.py . chmod a+x ./install-activity.py diff --git a/soas-liveuserscripts-eliminate.ks b/soas-liveuserscripts-eliminate.ks index 2abfbc3..8b95e4e 100644 --- a/soas-liveuserscripts-eliminate.ks +++ b/soas-liveuserscripts-eliminate.ks @@ -258,7 +258,7 @@ sed -i -e 's/schools/books/' /home/$CREATE_USERNAME/Activities/Browse.activity/d # execute sample content script and clean up afterwards su $CREATE_USERNAME -c ./copy-to-datastore.py -rm -f *.pdf *.epub copy-to-datastore.py +rm -f *.pdf copy-to-datastore.py # END avoid livesys scripts at every boot ################## -- cgit v0.9.1