diff --git a/scripts/release.js b/scripts/release.js index 585ec3d..7d45c6e 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -63,8 +63,8 @@ const parseMakefile = async (file) => { } const parseMakefileLine = async (file, line) => { - const [_, include] = line.split(/^include /); - return include ? parseMakefile(`${dirname(file)}/${include}`) : line; + const [_, include] = line.split('include ../'); + return include ? $`cat ${dirname(file)}/../${include}`.text() : line; } await main(values);