diff options
Diffstat (limited to 'soas-aslo-and-content.ks')
-rw-r--r-- | soas-aslo-and-content.ks | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/soas-aslo-and-content.ks b/soas-aslo-and-content.ks index 133b12c..1a4ce6b 100644 --- a/soas-aslo-and-content.ks +++ b/soas-aslo-and-content.ks @@ -129,6 +129,20 @@ for epub in $EPUB ; do cp -p $bundle $BUNDLES_DIR done +# more CC licensed e-books for us +BOOK="$BOOK http://trailblazing.royalsociety.org/pdf/All.pdf" # Royal Society +BOOK="$BOOK http://www.liberliber.it/biblioteca/c/collodi/pinocchio/epub/collodi_pinocchio.epub" # Pinocchio + +for book in $BOOK ; do + url=$book + 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 |