summaryrefslogtreecommitdiff
path: root/sync_to_cdn.sh
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-12-17 22:57:16 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-12-17 22:57:16 +0100
commit4817130d268df7b5bd83bbc5fda0f1d5a75a0a09 (patch)
treee7302faa45a210a942ef968451aedc1163aee528 /sync_to_cdn.sh
parentde6a04d8d600df2a0ac5896c5b82f243b5f8586c (diff)
downloadPROJ-data-4817130d268df7b5bd83bbc5fda0f1d5a75a0a09.tar.gz
PROJ-data-4817130d268df7b5bd83bbc5fda0f1d5a75a0a09.zip
Add sync_to_cdn.sh and regenerate_index_html.py; refresh index.html
Diffstat (limited to 'sync_to_cdn.sh')
-rwxr-xr-xsync_to_cdn.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/sync_to_cdn.sh b/sync_to_cdn.sh
new file mode 100755
index 0000000..da77d8f
--- /dev/null
+++ b/sync_to_cdn.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+TARGET=s3://cdn.proj.org/
+
+for i in `ls -d */`; do
+ echo "Synchronizing $i ..."
+ aws s3 sync $i "$TARGET" --exclude ".github/*" --profile projcdn
+done
+aws s3 cp index.html "$TARGET" --profile projcdn
+aws s3 cp README.DATUMGRID "$TARGET" --profile projcdn