Browse Source

Add codepage conversion example into dist

pull/222/head
Sami Vaarala 10 years ago
parent
commit
2f6273b06d
  1. 4
      dist-files/Makefile.codepage
  2. 11
      util/make_dist.sh

4
dist-files/Makefile.codepage

@ -0,0 +1,4 @@
codepage:
gcc -o $@ -std=c99 -O2 -Wall -Wextra -Isrc/ \
src/duktape.c examples/codepage-conv/duk_codepage_conv.c \
examples/codepage-conv/test.c -lm

11
util/make_dist.sh

@ -75,6 +75,7 @@ mkdir $DIST/examples/alloc-logging
mkdir $DIST/examples/alloc-torture mkdir $DIST/examples/alloc-torture
mkdir $DIST/examples/alloc-hybrid mkdir $DIST/examples/alloc-hybrid
mkdir $DIST/examples/debug-trans-socket mkdir $DIST/examples/debug-trans-socket
mkdir $DIST/examples/codepage-conv
# Copy most files directly # Copy most files directly
@ -337,6 +338,15 @@ for i in \
cp examples/debug-trans-socket/$i $DIST/examples/debug-trans-socket/ cp examples/debug-trans-socket/$i $DIST/examples/debug-trans-socket/
done done
for i in \
README.rst \
duk_codepage_conv.c \
duk_codepage_conv.h \
test.c \
; do
cp examples/codepage-conv/$i $DIST/examples/codepage-conv/
done
cp extras/README.rst $DIST/extras/ cp extras/README.rst $DIST/extras/
# XXX: copy extras # XXX: copy extras
@ -349,6 +359,7 @@ for i in \
Makefile.coffee \ Makefile.coffee \
Makefile.jxpretty \ Makefile.jxpretty \
Makefile.sandbox \ Makefile.sandbox \
Makefile.codepage \
mandel.js \ mandel.js \
; do ; do
cp dist-files/$i $DIST/ cp dist-files/$i $DIST/

Loading…
Cancel
Save