From 0ec043c80a0e67ec67683dba39943d2316075773 Mon Sep 17 00:00:00 2001 From: Jens Thiele Date: Mon, 11 Dec 2006 12:36:43 +0000 Subject: [PATCH] moved examples out of libt2n into libt2n-example --- test-build-install-use | 64 ------------------------------------------------ 1 files changed, 0 insertions(+), 64 deletions(-) delete mode 100755 test-build-install-use diff --git a/test-build-install-use b/test-build-install-use deleted file mode 100755 index 7f9a23a..0000000 --- a/test-build-install-use +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash -x -set -o errexit -set -o nounset - -# where is the source? (todo: we could checkout from svn) - -LIBT2NSRC="$PWD/../libt2n" -LIBT2N_EXAMPLES="$PWD/lib2n-example" - -# general settings - -# todo: safe temp dir creation -INSTDIR="/tmp/jens-delme" -mkdir "$INSTDIR" -INSTPREFIX="/tmp/jens-delme/usr" -MAKE="dmake" -VERSION="0.1" - -function append() { - if [ "x$1" = "x" ]; then - echo "$2" - else - echo "$1:$2" - fi -} - - -# 1. build and install lib and codegen -cd "$LIBT2NSRC" -./configure --prefix="$INSTPREFIX" -# todo: at the moment running make dist on clean source does not work -$MAKE -$MAKE distcheck -#$MAKE dist -$MAKE install - -echo "OK: library and code generator compiled and installed" - - -# prepare environment to use installed libt2n and code generator in non-standard directory -# temporarily disable nounset - -set +o nounset -export PATH=$(append "$PATH" "$INSTPREFIX/bin") -export LD_LIBRARY_PATH=$(append "$LD_LIBRARY_PATH" "$INSTPREFIX/lib") -export PKG_CONFIG_PATH=$(append "$PKG_CONFIG_PATH" "$INSTPREFIX/lib/pkgconfig") -set -o nounset - -# 2. build example-codegen -cd "$LIBT2N_EXAMPLES/example-codegen" -autoreconf -f -i -M "$INSTDIR/usr/share/aclocal" -./configure --prefix="$INSTPREFIX" -# todo: at the moment running make dist on clean source does not work -$MAKE -$MAKE distcheck -$MAKE install -echo "OK: example using installed libt2n works" - -# 3. compile client using the installed default lib -cd "$EXAMPLE_LIBUSAGE/example-libusage" -autoreconf -f -i -M "$INSTDIR/usr/share/aclocal" -./configure --prefix="$INSTPREFIX" -$MAKE distcheck -echo "OK: example using installed example lib works" -- 1.7.1