summaryrefslogtreecommitdiff
path: root/sync_to_cdn.sh
blob: 80dced697379096ef14a21caa058d389c822fca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

TARGET=s3://cdn.proj.org/

for i in `ls -d *_*/`; do
    if test "$i" != "grid_tools/"; then
        echo "Synchronizing $i ..."
        aws s3 sync $i "$TARGET" --exclude ".github/*" --profile projcdn
    fi
done
aws s3 cp geotiff.bundle.min.js "$TARGET" --profile projcdn
aws s3 cp ol.js "$TARGET" --profile projcdn
aws s3 cp ol.css "$TARGET" --profile projcdn
aws s3 cp index.html "$TARGET" --profile projcdn --content-type "text/html"
aws s3 cp files.geojson "$TARGET" --profile projcdn --content-type "application/geo+json"
aws s3 cp README.DATA "$TARGET" --profile projcdn --content-type "text/plain"