Install pstree, 'make all-scripts' executable

This commit is contained in:
Radon Rosborough 2021-01-17 13:47:21 -08:00
parent d700ddbb67
commit fa97f045dc
4 changed files with 8 additions and 5 deletions

View File

@ -43,6 +43,7 @@ make
man
nodejs
packer
pstree
skopeo
ssh
sudo

View File

@ -70,6 +70,7 @@ jq
less
man
moreutils
pstree
ripgrep
strace
sudo

View File

@ -120,6 +120,7 @@ git
jq
make
man
pstree
ripgrep
strace
sudo

View File

@ -3,6 +3,7 @@
// hence having a single script that does the whole thing.
import { promises as fs } from "fs";
import nodePath from "path";
import process from "process";
import url from "url";
@ -12,11 +13,10 @@ import { generateBuildScript } from "./generate-build-script.js";
// Parse command-line arguments, run main functionality, and exit.
async function main() {
for (const { lang, type } of await getPackages()) {
await fs.mkdir(`build/${type}/${lang}`, { recursive: true });
await fs.writeFile(
`build/${type}/${lang}/build.bash`,
await generateBuildScript({ lang, type })
);
const scriptPath = `build/${type}/${lang}/build.bash`;
await fs.mkdir(nodePath.dirname(scriptPath), { recursive: true });
await fs.writeFile(scriptPath, await generateBuildScript({ lang, type }));
await fs.chmod(scriptPath, 0o755);
}
process.exit(0);
}