Switch to good old make to reduce redundancies in build

This commit is contained in:
Glen Whitney 2019-12-12 00:33:59 -05:00
parent 2c17758987
commit 413a8b5b81
4 changed files with 77 additions and 19 deletions

View file

@ -2,6 +2,16 @@
```javascript
fs = require 'fs'
docsrcs = [
'README.md', 'src/dyna3.litcoffee',
'src/helpers/pkglock_to_externals.litcoffee', 'docbuild/extlist.md',
'doc/tech.md', 'doc/gendoc.litcoffee'
]
if process.argv.length > 2
process.stdout.write docsrcs.join ' '
process.stdout.write "\n"
process.exit 0
striplit = (text) -> String(text).replace(/^```javascript[^]*?```\n/mg,'')
incfile = (fn, filt = null) ->
if (filt is null)
@ -9,9 +19,5 @@
else filt = (x)->x
process.stdout.write filt fs.readFileSync fn
process.stdout.write "\n"
incfile f for f in [
'README.md', 'src/dyna3.litcoffee',
'src/helpers/pkglock_to_externals.litcoffee', 'docbuild/extlist.md',
'doc/tech.md', 'doc/gendoc.litcoffee' ]
incfile f for f in docsrcs
```