From 047e30b26e086dbb16780df5d9d12293fa7a318b Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Thu, 29 Aug 2013 00:10:02 +0300 Subject: [PATCH] tweak README.txt, add a ((o) Duktape -header to cmdline example --- README.txt => README.txt.dist | 2 ++ examples/cmdline/duk_cmdline.c | 3 +++ make_dist.sh | 8 ++------ 3 files changed, 7 insertions(+), 6 deletions(-) rename README.txt => README.txt.dist (97%) diff --git a/README.txt b/README.txt.dist similarity index 97% rename from README.txt rename to README.txt.dist index ae61d6cd..5b50b37e 100644 --- a/README.txt +++ b/README.txt.dist @@ -34,6 +34,8 @@ To test the command line tool:: $ cd $ ./duk + ((o) Duktape + [... build info ...] duk> print('Hello world!'); Hello world! = undefined diff --git a/examples/cmdline/duk_cmdline.c b/examples/cmdline/duk_cmdline.c index 17fcba50..68165f0b 100644 --- a/examples/cmdline/duk_cmdline.c +++ b/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 diff --git a/make_dist.sh b/make_dist.sh index 4ffef342..99d44a3b 100644 --- a/make_dist.sh +++ b/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?