https://github.com/dlang/downloads.dlang.org
Tools to manage downloads.dlang.org
https://github.com/dlang/downloads.dlang.org
Last synced: 12 months ago
JSON representation
Tools to manage downloads.dlang.org
- Host: GitHub
- URL: https://github.com/dlang/downloads.dlang.org
- Owner: dlang
- License: bsl-1.0
- Created: 2016-01-16T18:42:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-31T11:33:30.000Z (about 1 year ago)
- Last Synced: 2025-04-09T04:34:24.381Z (about 1 year ago)
- Language: Shell
- Size: 1.07 MB
- Stars: 8
- Watchers: 19
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Tool to pull list of files from the s3 downloads-dlang-org bucket
and generate the appropriate index.html pages to allow the
bucket to be used as a website.
Loads aws credentials and default region from ~/.aws/credentials and
~/.aws/config, i.e. where the aws-cli stores it's information.
See [Named Profiles - AWS Command Line Interface](https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html) for more info.
How to build
----------
```
make
```
How to generate
----------
```
./src/build-gen-index --help
./src/build-gen-index --command
```
Available commands:
- `s3_index`: generate an index file of all files in the S3 bucket
- `folder_index `: generate an index file of all files in a local folder
- `generate`: generate the HTML index pages
Multiple commands can be combined
```
./src/build-gen-index --command s3_index --command generate
```
How to deploy
-------------
`sync-ddo` will generate the index and HTML files and deploy them to the S3 bucket:
```
./sync-ddo
```
If you deploy manually, make sure to generate an up-to-date index file (`s3_index` or `folder_index`) and respective HTML files before.