5 # todo: safe temp dir creation
6 INSTDIR="/tmp/jens-delme"
8 INSTPREFIX="/tmp/jens-delme/usr"
10 ./configure --prefix="$INSTPREFIX"
15 TARFILE="libt2n-$VERSION.tar.gz"
16 cp "$TARFILE" "$INSTDIR"
18 # now build example-client using installed libt2n
22 if [ "x$1" = "x" ]; then
30 # adjust some environment variables
31 # (this is needed because we installed in non-standard directories)
33 # temporarily disable nounset
35 export PATH=$(append "$PATH" "$INSTPREFIX/bin")
36 export LD_LIBRARY_PATH=$(append "$LD_LIBRARY_PATH" "$INSTPREFIX/lib")
37 export PKG_CONFIG_PATH=$(append "$PKG_CONFIG_PATH" "$INSTPREFIX/lib/pkgconfig")
41 mv "libt2n-$VERSION/example-codegen" .
43 autoreconf -f -i -M "$INSTDIR/usr/share/aclocal"
45 # todo: at the moment running make dist on clean source does not work