Browse Source

tweak README.txt, add a ((o) Duktape -header to cmdline example

pull/1/head
Sami Vaarala 11 years ago
parent
commit
047e30b26e
  1. 2
      README.txt.dist
  2. 3
      examples/cmdline/duk_cmdline.c
  3. 8
      make_dist.sh

2
README.txt → README.txt.dist

@ -34,6 +34,8 @@ To test the command line tool::
$ cd <dist_root>
$ ./duk
((o) Duktape
[... build info ...]
duk> print('Hello world!');
Hello world!
= undefined

3
examples/cmdline/duk_cmdline.c

@ -184,6 +184,9 @@ int handle_interactive(duk_context *ctx) {
int retval = 0;
int rc;
duk_eval_string(ctx, "print('((o) Duktape'); print(__duk__.build);");
duk_pop(ctx);
/*
* Note: using readline leads to valgrind-reported leaks inside
* readline itself. Execute code from an input file (and not

8
make_dist.sh

@ -178,12 +178,8 @@ for i in \
cp examples/$i $DIST/
done
for i in \
README.txt \
LICENSE.txt \
; do
cp $i $DIST/
done
cp README.txt.dist $DIST/README.txt
cp LICENSE.txt $DIST/LICENSE.txt
# FIXME: web docs?

Loading…
Cancel
Save