From d7a24df88a684832803d1796e456ede700ba2ee9 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sat, 13 Feb 2016 19:17:32 +0000 Subject: [PATCH] Basic building and packaging machinery, which does nothing useful. Organization: Straylight/Edgeware From: Mark Wooding --- .gitignore | 6 ++++ .links | 3 ++ .skelrc | 8 +++++ Makefile.am | 57 ++++++++++++++++++++++++++++++++++++ configure.ac | 70 ++++++++++++++++++++++++++++++++++++++++++++ debian/changelog | 6 ++++ debian/compat | 1 + debian/control | 11 +++++++ debian/copyright | 16 ++++++++++ debian/rules | 2 ++ debian/source/format | 1 + vars.am | 57 ++++++++++++++++++++++++++++++++++++ 12 files changed, 238 insertions(+) create mode 100644 .gitignore create mode 100644 .links create mode 100644 .skelrc create mode 100644 Makefile.am create mode 100644 configure.ac create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 vars.am diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f9d77cc --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/COPYING +/Makefile.in +/aclocal.m4 +/autom4te.cache/ +/config/ +/configure diff --git a/.links b/.links new file mode 100644 index 0000000..5a93e8f --- /dev/null +++ b/.links @@ -0,0 +1,3 @@ +COPYING +config/auto-version +config/confsubst diff --git a/.skelrc b/.skelrc new file mode 100644 index 0000000..4334266 --- /dev/null +++ b/.skelrc @@ -0,0 +1,8 @@ +;;; -*-emacs-lisp-*- + +(setq skel-alist + (append + '((author . "Mark Wooding") + (full-title . "the `autoys' audio tools collection") + (program . "`autoys'")) + skel-alist)) diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..5b4a513 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,57 @@ +### -*-makefile-*- +### +### Top-level build script for `autoys' +### +### (c) 2016 Mark Wooding +### + +###----- Licensing notice --------------------------------------------------- +### +### This file is part of the `autoys' audio tools collection. +### +### `autoys' is free software; you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation; either version 2 of the License, or +### (at your option) any later version. +### +### `autoys' is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with `autoys'; if not, write to the Free Software Foundation, +### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +include $(top_srcdir)/vars.am + +SUBDIRS = + +###-------------------------------------------------------------------------- +### Subdirectories. + +###-------------------------------------------------------------------------- +### Release tweaking. + +## Release number. +dist-hook:: + echo $(VERSION) >$(distdir)/RELEASE + +## Bodge for now. +EXTRA_DIST += gremlin/gremlin + +## Additional build tools. +EXTRA_DIST += config/auto-version +EXTRA_DIST += config/confsubst + +###-------------------------------------------------------------------------- +### Debian. + +EXTRA_DIST += debian/rules +EXTRA_DIST += debian/control +EXTRA_DIST += debian/changelog +EXTRA_DIST += debian/copyright +EXTRA_DIST += debian/compat +EXTRA_DIST += debian/source/format + +###----- That's all, folks -------------------------------------------------- diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..16813ce --- /dev/null +++ b/configure.ac @@ -0,0 +1,70 @@ +dnl -*-autoconf-*- +dnl +dnl Configuration script for `autoys' +dnl +dnl (c) 2016 Mark Wooding +dnl + +dnl----- Licensing notice --------------------------------------------------- +dnl +dnl This file is part of the `autoys' audio tools collection. +dnl +dnl `autoys' is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2 of the License, or +dnl (at your option) any later version. +dnl +dnl `autoys' is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with `autoys'; if not, write to the Free Software Foundation, +dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +dnl-------------------------------------------------------------------------- +dnl Initialization. + +mdw_AUTO_VERSION +AC_INIT([autoys], AUTO_VERSION, [mdw@distorted.org.uk]) +AC_CONFIG_SRCDIR([gremlin/gremlin]) +AC_CONFIG_AUX_DIR([config]) +AM_INIT_AUTOMAKE([foreign]) +mdw_SILENT_RULES + +dnl-------------------------------------------------------------------------- +dnl C programming environment. + +AC_PROG_CC +AX_FLAGS_WARN_ALL + +dnl-------------------------------------------------------------------------- +dnl Various scripting languages. + +## Python +AM_PATH_PYTHON([2.5], [have_python=yes], [have_python=no]) +AM_CONDITIONAL([HAVE_PYTHON], [test $have_python = yes]) + +## Bash. +case "$BASH" in /bin/sh) unset BASH ;; esac +AC_ARG_VAR([BASH], [Path to the Bourne Again Shell.]) +AC_PATH_PROG([BASH], [bash], [false]) +AC_MSG_CHECKING([bash version]) +bashver=$("$BASH" -c 'echo $BASH_VERSION') +if "$BASH" 2>/dev/null -c '[[[ ${BASH_VERSINFO[0]} -ge 3 ]]]'; then + have_bash=yes + AC_MSG_RESULT([$bashver]) +else + have_bash=no + AC_MSG_RESULT([too old ($bashver)]) +fi +AM_CONDITIONAL([HAVE_BASH], [test $have_bash = yes]) + +dnl-------------------------------------------------------------------------- +dnl Output. + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT + +dnl----- That's all, folks -------------------------------------------------- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9152fd0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +autoys (0.1.0~pre0) experimental; urgency=low + + * Preliminary prerelease. + + -- Mark Wooding Sat, 13 Feb 2016 19:08:43 +0000 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c1edd5e --- /dev/null +++ b/debian/control @@ -0,0 +1,11 @@ +Source: autoys +Section: sound +Priority: extra +Maintainer: Mark Wooding +Build-Depends: debhelper (>= 9), python +Standards-Version: 3.1.1 + +Package: autoys +Architecture: all +Section: sound +Description: A convenience package which depends on the other `autoys' packages. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..39ad2e2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +The `autoys' collection is copyright (c) 2016 Mark Wooding. + +`autoys' is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +`autoys' is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have a copy of the GNU General Public License in +/usr/share/common-licenses/GPL; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, +USA. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cec98bb --- /dev/null +++ b/debian/rules @@ -0,0 +1,2 @@ +#! /usr/bin/make -f +%:; dh $@ --parallel -Bdebian/build diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/vars.am b/vars.am new file mode 100644 index 0000000..74922e2 --- /dev/null +++ b/vars.am @@ -0,0 +1,57 @@ +### -*-makefile-*- +### +### Common definitions +### +### (c) 2016 Mark Wooding +### + +###----- Licensing notice --------------------------------------------------- +### +### This file is part of the `autoys' audio tools collection. +### +### `autoys' is free software; you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation; either version 2 of the License, or +### (at your option) any later version. +### +### `autoys' is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with `autoys'; if not, write to the Free Software Foundation, +### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +###-------------------------------------------------------------------------- +### Initial values of common variables. + +EXTRA_DIST = + +CLEANFILES = +DISTCLEANFILES = +MAINTAINERCLEANFILES = + +bin_PROGRAMS = +bin_SCRIPTS = + +dist_man_MANS = + +###-------------------------------------------------------------------------- +### Standard configuration substitutions. + +confsubst = $(top_srcdir)/config/confsubst + +SUBSTITUTIONS = \ + prefix=$(prefix) exec_prefix=$(exec_prefix) \ + libdir=$(libdir) includedir=$(includedir) \ + bindir=$(bindir) sbindir=$(sbindir) \ + PACKAGE=$(PACKAGE) VERSION=$(VERSION) \ + PYTHON=$(PYTHON) BASH=$(BASH) + +V_SUBST = $(V_SUBST_$(V)) +V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY)) +V_SUBST_0 = @echo " SUBST $@"; +SUBST = $(V_SUBST)$(confsubst) + +###----- That's all, folks -------------------------------------------------- -- [mdw]