@@ -94,7 +94,7 @@ Using genconfig
9494Overview of genconfig
9595---------------------
9696
97- Genconfig (``config /genconfig.py ``) is a helper script which provides
97+ Genconfig (``tools /genconfig.py ``) is a helper script which provides
9898several commands related to config handling:
9999
100100* Generate a ``duk_config.h `` for a specified platform, compiler, and
@@ -121,16 +121,16 @@ To generate an autodetect header suitable for directly supported platforms
121121 # The --metadata option can point to a metadata directory or a tar.gz
122122 # file with packed metadata (included in end user distributable).
123123
124- $ cd duktape-1.4 .0
125- $ python config /genconfig.py \
124+ $ cd duktape-2.0 .0
125+ $ python tools /genconfig.py \
126126 --metadata config/genconfig_metadata.tar.gz \
127127 --output /tmp/duk_config.h \
128128 duk-config-header
129129
130130 # The same command using unpacked metadata present in Duktape source repo.
131131
132- $ cd duktape
133- $ python config /genconfig.py \
132+ $ cd duktape-2.0.0
133+ $ python tools /genconfig.py \
134134 --metadata config/ \
135135 --output /tmp/duk_config.h \
136136 duk-config-header
@@ -145,7 +145,7 @@ through a file or inline.
145145
146146If you're building Duktape as a DLL, you should use the ``--dll `` option::
147147
148- $ python config /genconfig.py \
148+ $ python tools /genconfig.py \
149149 --metadata config/ \
150150 --dll \
151151 --output /tmp/duk_config.h \
@@ -167,7 +167,7 @@ Generating a barebones duk_config.h
167167To generate a barebones header you need to specify a platform, compiler, and
168168architecture for genconfig::
169169
170- $ python config /genconfig.py \
170+ $ python tools /genconfig.py \
171171 --metadata config/ \
172172 --platform linux \
173173 --compiler gcc \
@@ -229,7 +229,7 @@ file, and a few options are then tweaked using the C compiler format. An
229229autodetect header is then generated::
230230
231231 $ cd duktape
232- $ python config /genconfig.py \
232+ $ python tools /genconfig.py \
233233 --metadata config/ \
234234 --option-file low_memory.yaml \
235235 -DDUK_USE_TRACEBACK_DEPTH=100 \
@@ -254,7 +254,7 @@ This file, another override file, and a few inline YAML forced options
254254could be used as follows to generate a barebones header::
255255
256256 $ cd duktape
257- $ python config /genconfig.py \
257+ $ python tools /genconfig.py \
258258 --metadata config/ \
259259 --platform linux \
260260 --compiler gcc \
@@ -264,7 +264,7 @@ could be used as follows to generate a barebones header::
264264 --option-yaml 'DUK_USE_JX: false' \
265265 --option-yaml 'DUK_USE_JC: false' \
266266 --output /tmp/duk_config.h \
267- barebones -header
267+ duk-config -header
268268
269269For inline YAML, multiple forced options can be given either by using a YAML
270270value with multiple keys, or by using multiple options::
@@ -335,15 +335,15 @@ sanity checks (if enabled).
335335
336336For example, to generate a barebones header with two fixup headers::
337337
338- $ python config /genconfig.py \
338+ $ python tools /genconfig.py \
339339 --metadata config/ \
340340 --platform linux \
341341 --compiler gcc \
342342 --architecture x64 \
343343 --fixup-file my_env_strings.h \
344344 --fixup-file my_no_json_fastpath.h \
345345 --output /tmp/duk_config.h \
346- barebones -header
346+ duk-config -header
347347
348348The ``my_env_strings.h `` fixup header could be::
349349
@@ -476,7 +476,7 @@ header::
476476 # my_custom.h is applied after generated header; functionally similar
477477 # to Duktape 1.2.x duk_custom.h
478478
479- $ python config/ genconfig.py [...] --fixup-file my_custom.h [...]
479+ $ python tools/ genconfig.py [...] --fixup-file my_custom.h [...]
480480
481481A genconfig-generated barebones header also has the following line near the end
482482for detecting where to add override defines; this is easy to detect reliably::
0 commit comments