pulumi-bin: refactor output creation
This commit is contained in:
parent
0dfc707376
commit
ab2b32cd1a
@ -56,7 +56,8 @@ function genSrcs() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
cat <<EOF > data.nix
|
{
|
||||||
|
cat <<EOF
|
||||||
# DO NOT EDIT! This file is generated automatically by update.sh
|
# DO NOT EDIT! This file is generated automatically by update.sh
|
||||||
{ }:
|
{ }:
|
||||||
{
|
{
|
||||||
@ -64,14 +65,14 @@ cat <<EOF > data.nix
|
|||||||
pulumiPkgs = {
|
pulumiPkgs = {
|
||||||
x86_64-linux = [
|
x86_64-linux = [
|
||||||
EOF
|
EOF
|
||||||
genMainSrc "linux" >> data.nix
|
genMainSrc "linux"
|
||||||
genSrcs "linux" >> data.nix
|
genSrcs "linux"
|
||||||
echo " ];" >> data.nix
|
echo " ];"
|
||||||
|
echo " x86_64-darwin = ["
|
||||||
echo " x86_64-darwin = [" >> data.nix
|
|
||||||
genMainSrc "darwin" >> data.nix
|
|
||||||
genSrcs "darwin" >> data.nix
|
|
||||||
echo " ];" >> data.nix
|
|
||||||
echo " };" >> data.nix
|
|
||||||
echo "}" >> data.nix
|
|
||||||
|
|
||||||
|
genMainSrc "darwin"
|
||||||
|
genSrcs "darwin"
|
||||||
|
echo " ];"
|
||||||
|
echo " };"
|
||||||
|
echo "}"
|
||||||
|
} > data.nix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user