summaryrefslogtreecommitdiff
path: root/sync_to_cdn.sh
blob: b9cf0ceb437743beb88a8ede5499abba672c1d21 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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 --content-type "text/html"
aws s3 cp files.geojson "$TARGET" --profile projcdn --content-type "application/geo+json"
aws s3 cp README.DATUMGRID "$TARGET" --profile projcdn --content-type "text/plain"