From: Javier Fernández-Sanguino Date: Wed, 10 May 2017 21:01:55 +0000 (+0000) Subject: Add directory to publish the PDF files that are synced with the Project Aon server X-Git-Tag: 20180215~71 X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=commitdiff_plain;h=0bc2667b11911126b68307a45b2674aa8863c899 Add directory to publish the PDF files that are synced with the Project Aon server git-svn-id: https://projectaon.org/data/trunk@2627 f6f3e2d7-ff33-0410-aaf5-b4bee2cdac11 --- diff --git a/common/pdf/build/lw/FINAL/rsync-to-server.sh b/common/pdf/build/lw/FINAL/rsync-to-server.sh new file mode 100755 index 0000000..4416962 --- /dev/null +++ b/common/pdf/build/lw/FINAL/rsync-to-server.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +# Sync current contents of this directory (PDF files) +# to project's server using rsync +# +# TODO: Support both Spanish and English books +# + +set -e +DESTHOST=www.projectaon.org + +# Rsync options: +OPTS="-rtz -i --chmod=Dg+s,ug+w,Fo-w,+X" +EXTRAOPTS="-vv" +#EXTRAOPTS="-v -v --dry-run" + +# TODO: Make it possible to select if this is a test run +# (rsync to staff directory) or an official publication +# (rsync to web site) + +# Spanish directory - website linked +DESTDIR=/home/projectaon/projectaon.org/es/pdf/ls + +# Staff directory +#DESTDIR=/home/javier_aon/projectaon/projectaon.org/es + + +# By default sync all the books +BOOKS="--files-from=spanish-books" + +echo "Syncing PDF" +echo +set +e +rsync ${OPTS} ${EXTRAOPTS} ${BOOKS} . ${DESTHOST}:${DESTDIR} +set -e + +exit 0 diff --git a/common/pdf/build/lw/FINAL/spanish-books b/common/pdf/build/lw/FINAL/spanish-books new file mode 100644 index 0000000..dbf9a27 --- /dev/null +++ b/common/pdf/build/lw/FINAL/spanish-books @@ -0,0 +1,13 @@ +01hdlo.pdf +02fsea.pdf +03lcdk.pdf +04eam.pdf +05eddls.pdf +06lpdlc.pdf +07meec.pdf +08ljdlh.pdf +09ecdm.pdf +10lmdt.pdf +11pdt.pdf +12lsdlo.pdf +13lsdlpdr.pdf