Move not-recommended-to-edit config files into sub directory
This commit is contained in:
parent
8f86b54598
commit
2c339803a3
14 changed files with 91 additions and 61 deletions
28
utility/check-env.js
Normal file
28
utility/check-env.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
"use strict";
|
||||
|
||||
const which = require("which");
|
||||
const colors = require("colors/safe");
|
||||
|
||||
console.log("Checking External Dependencies");
|
||||
check("otfccdump");
|
||||
check("otfccbuild");
|
||||
check("ttfautohint");
|
||||
check("otf2otc");
|
||||
checkOptional("ttx");
|
||||
|
||||
function check(util) {
|
||||
try {
|
||||
which.sync(util);
|
||||
console.error(colors.green(` * External dependency <${util}> is present.`));
|
||||
} catch (e) {
|
||||
console.error(colors.red(` * External dependency <${util}> is not found.`));
|
||||
}
|
||||
}
|
||||
function checkOptional(util) {
|
||||
try {
|
||||
which.sync(util);
|
||||
console.error(colors.green(` * Optional external dependency <${util}> is present.`));
|
||||
} catch (e) {
|
||||
console.error(colors.yellow(` * Optional external dependency <${util}> is not found.`));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue