diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-12-01 15:42:03 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-12-01 15:42:03 +0000 |
commit | edd0e77f7f9de2e250ecca0deade89f5776fdfee (patch) | |
tree | cacae0cdc9c8d3b03a56f99d23c1e0c6b512d44b | |
parent | 0b84b70c6cbd8bd50635a719030e3b66fe8b1b1e (diff) | |
download | gnome-dictionary-edd0e77f7f9de2e250ecca0deade89f5776fdfee.tar.gz |
Drop build-api wrapper for Continuous
We don't need it any more.
-rwxr-xr-x | configure | 134 |
1 files changed, 0 insertions, 134 deletions
diff --git a/configure b/configure deleted file mode 100755 index 6bccc87..0000000 --- a/configure +++ /dev/null @@ -1,134 +0,0 @@ -#!/bin/bash -# configure script adapter for Meson -# Based on build-api: https://github.com/cgwalters/build-api -# Copyright 2010, 2011, 2013 Colin Walters <walters@verbum.org> -# Copyright 2016 Emmanuele Bassi -# Licensed under the new-BSD license (http://www.opensource.org/licenses/bsd-license.php) - -# Build API variables: -# buildapi-variable-require-builddir - -# Little helper function for reading args from the commandline. -# it automatically handles -a b and -a=b variants, and returns 1 if -# we need to shift $3. -read_arg() { - # $1 = arg name - # $2 = arg value - # $3 = arg parameter - local rematch='^[^=]*=(.*)$' - if [[ $2 =~ $rematch ]]; then - read "$1" <<< "${BASH_REMATCH[1]}" - else - read "$1" <<< "$3" - # There is no way to shift our callers args, so - # return 1 to indicate they should do it instead. - return 1 - fi -} - -sanitycheck() { - # $1 = arg name - # $1 = arg command - # $2 = arg alternates - local cmd=$( which $2 2>/dev/null ) - - if [ -x "$cmd" ]; then - read "$1" <<< "$cmd" - return 0 - fi - - test -z $3 || { - for alt in $3; do - cmd=$( which $alt 2>/dev/null ) - - if [ -x "$cmd" ]; then - read "$1" <<< "$cmd" - return 0 - fi - done - } - - echo -e "\e[1;31mERROR\e[0m: Command '$2' not found" - exit 1 -} - - -sanitycheck MESON 'meson' -sanitycheck NINJA 'ninja' 'ninja-build' - -build_man='-Dbuild_man=false' - -while (($# > 0)); do - case "${1%%=*}" in - --prefix) read_arg prefix "$@" || shift;; - --bindir) read_arg bindir "$@" || shift;; - --sbindir) read_arg sbindir "$@" || shift;; - --libexecdir) read_arg libexecdir "$@" || shift;; - --datarootdir) read_arg datarootdir "$@" || shift;; - --datadir) read_arg datadir "$@" || shift;; - --sysconfdir) read_arg sysconfdir "$@" || shift;; - --libdir) read_arg libdir "$@" || shift;; - --mandir) read_arg mandir "$@" || shift;; - --includedir) read_arg includedir "$@" || shift;; - --enable-man) build_man='-Dbuild_man=true';; - --disable-man) build_man='-Dbuild_man=false';; - *) echo -e "\e[1;33mINFO\e[0m: Ignoring unknown option '$1'";; - esac - shift -done - -# Defaults -test -z ${prefix} && prefix="/usr/local" -test -z ${bindir} && bindir=${prefix}/bin -test -z ${sbindir} && sbindir=${prefix}/sbin -test -z ${libexecdir} && libexecdir=${prefix}/bin -test -z ${datarootdir} && datarootdir=${prefix}/share -test -z ${datadir} && datadir=${datarootdir} -test -z ${sysconfdir} && sysconfdir=${prefix}/etc -test -z ${libdir} && libdir=${prefix}/lib -test -z ${mandir} && mandir=${prefix}/share/man -test -z ${includedir} && includedir=${prefix}/include - -# The source directory is the location of this file -srcdir=$(dirname $0) - -# Wrapper Makefile for Ninja -cat > Makefile <<END -# Generated by configure; do not edit - -all: - CC="\$(CC)" CXX="\$(CXX)" ${NINJA} - -install: - DESTDIR="\$(DESTDIR)" ${NINJA} install -END - -echo "Summary:" -echo " meson:....... ${MESON}" -echo " ninja:....... ${NINJA}" -echo " prefix:...... ${prefix}" -echo " bindir:...... ${bindir}" -echo " sbindir:..... ${sbindir}" -echo " libexecdir:.. ${libexecdir}" -echo " datarootdir:. ${datarootdir}" -echo " datadir:..... ${datadir}" -echo " sysconfdir:.. ${sysconfdir}" -echo " libdir:...... ${libdir}" -echo " mandir:...... ${mandir}" -echo " includedir:.. ${includedir}" -echo " additional:.." - -exec ${MESON} \ - --prefix=${prefix} \ - --libdir=${libdir} \ - --libexecdir=${libexecdir} \ - --datadir=${datadir} \ - --sysconfdir=${sysconfdir} \ - --bindir=${bindir} \ - --includedir=${includedir} \ - --mandir=${mandir} \ - --default-library shared \ - ${build_man} \ - ${srcdir} - -# vim: ai ts=8 noet sts=2 ft=sh |