mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-09-17 10:27:08 +03:00
1c6397ccde
`./scripts/generate.sh` will now also auto-update the `./examples/*.dhall` files and `./package.dhall`, too
17 lines
569 B
Bash
Executable File
17 lines
569 B
Bash
Executable File
#!/bin/sh
|
|
if dir=$(nix-build release.nix --attr dhall-kubernetes --no-out-link); then
|
|
rm -rf ./defaults ./types
|
|
cp -r "$dir"/defaults .
|
|
chmod u+w ./defaults
|
|
cp -r "$dir"/types .
|
|
chmod u+w ./types
|
|
cp -r "$dir"/schemas .
|
|
chmod u+w ./schemas
|
|
cp -r "$dir"/examples .
|
|
chmod u+w ./examples
|
|
cp "$dir"/types.dhall "$dir"/typesUnion.dhall "$dir"/defaults.dhall "$dir"/schemas.dhall "$dir"/package.dhall .
|
|
chmod u+w ./types.dhall ./typesUnion.dhall ./defaults.dhall ./schemas.dhall ./package.dhall
|
|
cp "$dir/README.md" README.md
|
|
chmod u+w ./README.md
|
|
fi
|