iotivity 0.9.0
[platform/upstream/iotivity.git] / service / protocol-plugin / lib / cpluff / examples / autogen.sh
1 #! /bin/sh
2
3 # Copyright 2007 Johannes Lehtinen
4 # This shell script is free software; Johannes Lehtinen gives
5 # unlimited permission to copy, distribute and modify it.
6
7 set -e
8
9 # Check directory
10 basedir="`dirname "$0"`"
11 if ! test -f "$basedir"/cpfile/Makefile.am; then
12     echo 'Run autogen.sh in the examples source directory.' 1>&2
13     exit 1
14 fi
15
16 # Generate files in examples directory
17 cd "$basedir"
18 test -d auxliary || mkdir auxliary
19 libtoolize --automake -f
20 aclocal
21 autoconf
22 automake -a