aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build-aux
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2012-03-30 14:11:18 -0800
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2012-03-30 14:11:18 -0800
commita169953e51428a13de6df279c72dafc000e096a4 (patch)
tree95d12b5ce89492459e22cd5e13708b5b8c3b3bfb /build-aux
parent69bff9c8c28520dbdaff8b0c0d6d48cdff287565 (diff)
downloadldap-utils-a169953e51428a13de6df279c72dafc000e096a4.tar.gz
ldap-utils-a169953e51428a13de6df279c72dafc000e096a4.tar.bz2
ldap-utils-a169953e51428a13de6df279c72dafc000e096a4.tar.xz
ldap-utils-a169953e51428a13de6df279c72dafc000e096a4.zip
Updating auto tool files to current Bindle Binaries standards.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/autogen.sh48
-rwxr-xr-xbuild-aux/git-package-version.sh60
2 files changed, 108 insertions, 0 deletions
diff --git a/build-aux/autogen.sh b/build-aux/autogen.sh
new file mode 100755
index 0000000..226c258
--- /dev/null
+++ b/build-aux/autogen.sh
@@ -0,0 +1,48 @@
1#!/bin/sh
2#
3# ODBC Shell
4# Copyright (C) 2011 Bindle Binaries <syzdek@bindlebinaries.com>.
5#
6# @BINDLE_BINARIES_BSD_LICENSE_START@
7#
8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions are
10# met:
11#
12# * Redistributions of source code must retain the above copyright
13# notice, this list of conditions and the following disclaimer.
14# * Redistributions in binary form must reproduce the above copyright
15# notice, this list of conditions and the following disclaimer in the
16# documentation and/or other materials provided with the distribution.
17# * Neither the name of Bindle Binaries nor the
18# names of its contributors may be used to endorse or promote products
19# derived from this software without specific prior written permission.
20#
21# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
22# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BINDLE BINARIES BE LIABLE FOR
25# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31# SUCH DAMAGE.
32#
33# @BINDLE_BINARIES_BSD_LICENSE_END@
34#
35# build-aux/autogen.sh - runs GNU Autotools to create build environment
36#
37
38AUTOGENNAME=`basename ${0}` || exit $?
39AUTOSRCDIR=`dirname ${0}` || exit $?
40AUTOSRCDIR=${AUTOSRCDIR}/..
41
42echo "${AUTOGENNAME}: running \"autoreconf -i -f -I m4 ${AUTOSRCDIR}\""
43autoreconf -i -f -I m4 ${AUTOSRCDIR} || exit $?
44
45echo "${AUTOGENNAME}: removing temp files"
46rm -rf ${AUTOSRCDIR}/autom4te.cache || exit $?
47
48# end of script
diff --git a/build-aux/git-package-version.sh b/build-aux/git-package-version.sh
new file mode 100755
index 0000000..d182dd4
--- /dev/null
+++ b/build-aux/git-package-version.sh
@@ -0,0 +1,60 @@
1#!/bin/sh
2#
3# ODBC Shell
4# Copyright (C) 2011 Bindle Binaries <syzdek@bindlebinaries.com>.
5#
6# @BINDLE_BINARIES_BSD_LICENSE_START@
7#
8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions are
10# met:
11#
12# * Redistributions of source code must retain the above copyright
13# notice, this list of conditions and the following disclaimer.
14# * Redistributions in binary form must reproduce the above copyright
15# notice, this list of conditions and the following disclaimer in the
16# documentation and/or other materials provided with the distribution.
17# * Neither the name of Bindle Binaries nor the
18# names of its contributors may be used to endorse or promote products
19# derived from this software without specific prior written permission.
20#
21# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
22# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BINDLE BINARIES BE LIABLE FOR
25# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31# SUCH DAMAGE.
32#
33# @BINDLE_BINARIES_BSD_LICENSE_END@
34#
35# @configure_input@
36#
37# build-aux/git-package-version.sh - determines Git version if available
38#
39
40if test "x${1}" == "x";then
41 echo "Usage: ${0} srcdir version" 1>&2;
42 exit 1;
43fi;
44
45SRCDIR=$1;
46PACKAGE_VERSION=$2;
47
48if test -f ${SRCDIR}/.git/config;then
49 GPV=`git --git-dir=${SRCDIR}/.git describe --abbrev=7 HEAD 2> /dev/null`;
50 GPV=`echo ${GPV} |sed -e 's/-/./g'`;
51 GPV=`echo ${GPV} |sed -e 's/^v//g'`;
52 if test "x${GPV}" != "x";then
53 if test -d ${SRCDIR}/build-aux;then
54 echo "${GPV}" > ${SRCDIR}/build-aux/git-package-version 2> /dev/null;
55 fi
56 echo "${GPV}";
57 fi;
58fi
59
60# end of script