#!/bin/sh
#
# Compile and run examples/codepage-conv/test.c

cd examples/codepage-conv/

LIBS="$(pkg-config --libs duktape)"
if cc -o test test.c duk_codepage_conv.c $LIBS; then
    echo success: building examples/codepage-conv/test.c succeeded
    echo running test...
    ./test
    echo success: running test succeeded
else
    echo error: building and running examples/codepage-conv/test.c failed
    exit 1
fi

rm -f test
