5 # where is the source? (todo: we could checkout from svn)
7 LIBT2NSRC="$PWD/../libt2n"
8 LIBT2N_EXAMPLES="$PWD/lib2n-example"
12 # todo: safe temp dir creation
13 INSTDIR="/tmp/jens-delme"
15 INSTPREFIX="/tmp/jens-delme/usr"
20 if [ "x$1" = "x" ]; then
28 # 1. build and install lib and codegen
30 ./configure --prefix="$INSTPREFIX"
31 # todo: at the moment running make dist on clean source does not work
37 echo "OK: library and code generator compiled and installed"
40 # prepare environment to use installed libt2n and code generator in non-standard directory
41 # temporarily disable nounset
44 export PATH=$(append "$PATH" "$INSTPREFIX/bin")
45 export LD_LIBRARY_PATH=$(append "$LD_LIBRARY_PATH" "$INSTPREFIX/lib")
46 export PKG_CONFIG_PATH=$(append "$PKG_CONFIG_PATH" "$INSTPREFIX/lib/pkgconfig")
49 # 2. build example-codegen
50 cd "$LIBT2N_EXAMPLES/example-codegen"
51 autoreconf -f -i -M "$INSTDIR/usr/share/aclocal"
52 ./configure --prefix="$INSTPREFIX"
53 # todo: at the moment running make dist on clean source does not work
57 echo "OK: example using installed libt2n works"
59 # 3. compile client using the installed default lib
60 cd "$EXAMPLE_LIBUSAGE/example-libusage"
61 autoreconf -f -i -M "$INSTDIR/usr/share/aclocal"
62 ./configure --prefix="$INSTPREFIX"
64 echo "OK: example using installed example lib works"