summaryrefslogtreecommitdiff
path: root/Docs
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-03-23 14:57:43 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2017-03-23 14:57:43 +0000
commit34dec2b5d40f6d476a1017862916ad46ef697ecc (patch)
tree790883ca14bf9ec1d4c6b8d83041abd08ab4d9c4 /Docs
parent6bfc8ba547698e81dd33f0fdaff29bb227906d8d (diff)
parentc98fc7999aede01b037cfd06ea2dd1d0775b69bb (diff)
downloadnetsurf-34dec2b5d40f6d476a1017862916ad46ef697ecc.tar.gz
netsurf-34dec2b5d40f6d476a1017862916ad46ef697ecc.tar.bz2
Merge branch 'tlsa/duktape2'
Diffstat (limited to 'Docs')
-rw-r--r--Docs/updating-duktape.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/Docs/updating-duktape.md b/Docs/updating-duktape.md
new file mode 100644
index 000000000..a3e5a79b1
--- /dev/null
+++ b/Docs/updating-duktape.md
@@ -0,0 +1,29 @@
+Updating Duktape
+================
+
+1. Fetch the [latest release](http://duktape.org/download.html) archive.
+
+2. Extract it somewhere.
+
+3. That extracts to a `duktape-[VERSION]` directory.
+
+4. We need to tell duktape about our `duk_custom.h` header:
+
+ 1. Change into the `duktape-[VERSION]` directory.
+
+ 2. Run the following command:
+
+ python2 tools/configure.py \
+ --output-directory /tmp/output \
+ --source-directory src-input \
+ --config-metadata config \
+ --fixup-line '#include "duk_custom.h"'
+
+ 3. This generates a suitable set of duktape
+ sources in `/tmp/output`
+
+5. Replace the `duktape.c`, `duktape.h` and
+ `duk_config.h` files in the netsurf source
+ tree (in `content/handlers/javascript/duktape`)
+ with those generated in `/tmp/output`.
+