5 # todo: safe temp dir creation
6 INSTDIR="/tmp/jens-delme"
8 INSTPREFIX="/tmp/jens-delme/usr"
10 ./configure --prefix="$INSTPREFIX"
11 # todo: at the moment running make dist on clean source does not work
17 echo "OK: library and code generator compiled and installed"
20 TARFILE="libt2n-$VERSION.tar.gz"
21 cp "$TARFILE" "$INSTDIR"
22 EXAMPLE_LIBUSAGE="example-libusage"
23 cp -af "$EXAMPLE_LIBUSAGE" "$INSTDIR"
25 # now build example-client using installed libt2n
29 if [ "x$1" = "x" ]; then
37 # adjust some environment variables
38 # (this is needed because we installed in non-standard directories)
40 # temporarily disable nounset
42 export PATH=$(append "$PATH" "$INSTPREFIX/bin")
43 export LD_LIBRARY_PATH=$(append "$LD_LIBRARY_PATH" "$INSTPREFIX/lib")
44 export PKG_CONFIG_PATH=$(append "$PKG_CONFIG_PATH" "$INSTPREFIX/lib/pkgconfig")
48 mv "libt2n-$VERSION/example-codegen" .
50 autoreconf -f -i -M "$INSTDIR/usr/share/aclocal"
51 ./configure --prefix="$INSTPREFIX"
52 # todo: at the moment running make dist on clean source does not work
57 echo "OK: example using installed libt2n works"
59 # now compile client using the installed default lib
60 cd "$EXAMPLE_LIBUSAGE"
61 autoreconf -f -i -M "$INSTDIR/usr/share/aclocal"
62 ./configure --prefix="$INSTPREFIX"
64 echo "OK: example using installed example lib works"