| ... | @@ -26,7 +26,7 @@ curl --fail -I "$X86_64_FREEBSD_JSON_URL" >/dev/null || exit 0 | ... | @@ -26,7 +26,7 @@ curl --fail -I "$X86_64_FREEBSD_JSON_URL" >/dev/null || exit 0 |
| 26 | # Without --user, this gave me: | 26 | # Without --user, this gave me: |
| 27 | # ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied | 27 | # ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied |
| 28 | pip3 install s3cmd --user | 28 | pip3 install s3cmd --user |
| 29 | export PATH="$PATH:~/.local/bin" | 29 | S3CMD="$HOME/.local/bin/s3cmd" |
| 30 | | 30 | |
| 31 | rm -rf .git | 31 | rm -rf .git |
| 32 | | 32 | |
| ... | @@ -73,7 +73,7 @@ cd www.ziglang.org | ... | @@ -73,7 +73,7 @@ cd www.ziglang.org |
| 73 | export MASTER_DATE="$(date +%Y-%m-%d)" | 73 | export MASTER_DATE="$(date +%Y-%m-%d)" |
| 74 | "../$ZIG" run update-download-page.zig | 74 | "../$ZIG" run update-download-page.zig |
| 75 | | 75 | |
| 76 | s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "../$SRC_TARBALL" s3://ziglang.org/builds/ | 76 | $S3CMD put -P --add-header="cache-control: public, max-age=31536000, immutable" "../$SRC_TARBALL" s3://ziglang.org/builds/ |
| 77 | s3cmd put -P "../$LANGREF" s3://ziglang.org/documentation/master/index.html --add-header="Cache-Control: max-age=0, must-revalidate" | 77 | $S3CMD put -P "../$LANGREF" s3://ziglang.org/documentation/master/index.html --add-header="Cache-Control: max-age=0, must-revalidate" |
| 78 | s3cmd put -P www/download/index.html s3://ziglang.org/download/index.html --add-header="Cache-Control: max-age=0, must-revalidate" | 78 | $S3CMD put -P www/download/index.html s3://ziglang.org/download/index.html --add-header="Cache-Control: max-age=0, must-revalidate" |
| 79 | s3cmd put -P www/download/index.json s3://ziglang.org/download/index.json --add-header="Cache-Control: max-age=0, must-revalidate" | 79 | $S3CMD put -P www/download/index.json s3://ziglang.org/download/index.json --add-header="Cache-Control: max-age=0, must-revalidate" |