pulumi-bin: refactor output creation

This commit is contained in:
Phillip Cloud 2021-02-27 07:27:31 -05:00
parent 0dfc707376
commit ab2b32cd1a

View file

@ -56,7 +56,8 @@ function genSrcs() {
done
}
cat <<EOF > data.nix
{
cat <<EOF
# DO NOT EDIT! This file is generated automatically by update.sh
{ }:
{
@ -64,14 +65,14 @@ cat <<EOF > data.nix
pulumiPkgs = {
x86_64-linux = [
EOF
genMainSrc "linux" >> data.nix
genSrcs "linux" >> data.nix
echo " ];" >> data.nix
echo " x86_64-darwin = [" >> data.nix
genMainSrc "darwin" >> data.nix
genSrcs "darwin" >> data.nix
echo " ];" >> data.nix
echo " };" >> data.nix
echo "}" >> data.nix
genMainSrc "linux"
genSrcs "linux"
echo " ];"
echo " x86_64-darwin = ["
genMainSrc "darwin"
genSrcs "darwin"
echo " ];"
echo " };"
echo "}"
} > data.nix