Add directory to publish the PDF files that are synced with the Project Aon server
authorJavier Fernández-Sanguino <javier.fernandez-sanguino@projectaon.org>
Wed, 10 May 2017 21:01:55 +0000 (21:01 +0000)
committerJavier Fernández-Sanguino <javier.fernandez-sanguino@projectaon.org>
Wed, 10 May 2017 21:01:55 +0000 (21:01 +0000)
git-svn-id: https://projectaon.org/data/trunk@2627 f6f3e2d7-ff33-0410-aaf5-b4bee2cdac11

common/pdf/build/lw/FINAL/rsync-to-server.sh [new file with mode: 0755]
common/pdf/build/lw/FINAL/spanish-books [new file with mode: 0644]

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 (executable)
index 0000000..4416962
--- /dev/null
@@ -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 (file)
index 0000000..dbf9a27
--- /dev/null
@@ -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