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 man
nodejs nodejs
packer packer
pstree
skopeo skopeo
ssh ssh
sudo sudo

View File

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

View File

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

View File

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