mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-09-17 10:27:08 +03:00
9a1f76be55
This entails some other changes: * Disable older releases, which don't have the same OpenAPI spec as newer ones do * Add some `dhall-kubernetes-generator` fixes to handle weird behavior for certain versions
17 lines
583 B
Bash
Executable File
17 lines
583 B
Bash
Executable File
#!/bin/sh
|
|
if dir=$(nix-build release.nix --attr "\"$(< ./nix/preferred.txt)\"" --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
|