/autom4te.cache/
/config/
/configure
+/gremlin/Makefile.in
###--------------------------------------------------------------------------
### Subdirectories.
+SUBDIRS += gremlin
+
###--------------------------------------------------------------------------
### Release tweaking.
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
EXTRA_DIST += debian/compat
EXTRA_DIST += debian/source/format
+EXTRA_DIST += debian/gremlin.install
+
###----- That's all, folks --------------------------------------------------
mdw_AUTO_VERSION
AC_INIT([autoys], AUTO_VERSION, [mdw@distorted.org.uk])
-AC_CONFIG_SRCDIR([gremlin/gremlin])
+AC_CONFIG_SRCDIR([gremlin/gremlin.in])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([foreign])
mdw_SILENT_RULES
dnl--------------------------------------------------------------------------
dnl Output.
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES(
+ [Makefile]
+ [gremlin/Makefile])
AC_OUTPUT
dnl----- That's all, folks --------------------------------------------------
Package: autoys
Architecture: all
Section: sound
+Depends:
+ gremlin
Description: A convenience package which depends on the other `autoys' packages.
+
+Package: gremlin
+Architecture: all
+Section: sound
+Depends: ${python:Depends},
+ python-pyparsing,
+ python-gst0.10, python-gobject-2,
+ python-eyed3, python-imaging
+Description: Maintain converted trees of audio files.
+ The `gremlin' program converts audio files in an input `master' directory
+ tree, which presumably contains high-quality (ideally lossless) encodings of
+ interesting audio, writing corresponding converted files to a collection of
+ output directory trees. It's non-interactive, idempotent, and restartable;
+ it never modifies its master tree. It's exactly the sort of thing you want
+ to install as a daily cron job.
+ .
+ The gremlin reads a configuration file which describes the conversion policy
+ for each of the output trees. The policy can say things like: copy MP3
+ files up to 160kb/s, or Ogg Vorbis files up to 128kb/s; and convert
+ everything else to 128kb/s Ogg Vorbis.
+ .
+ The gremlin can also convert image files, such as cover art.
+ .
+ Input files can be anything which GStreamer and/or the Python Imaging
+ Library can understand; output files are more constrained, because the
+ gremlin has to be able to understand their relevant properties. The
+ currently supported audio formats are Ogg Vorbis and MP3; image formats are
+ JPEG, PNG, and BMP.
--- /dev/null
+usr/bin/gremlin
--- /dev/null
+### -*-makefile-*-
+###
+### Build script for the conversion gremlin
+###
+### (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
+
+###--------------------------------------------------------------------------
+### The gremlin.
+
+if HAVE_PYTHON
+
+bin_SCRIPTS += gremlin
+CLEANFILES += gremlin
+EXTRA_DIST += gremlin.in
+
+gremlin: gremlin.in
+ $(SUBST) $(srcdir)/gremlin.in >$@.new $(SUBSTITUTIONS) && \
+ chmod +x $@.new && mv $@.new $@
+
+
+endif
+
+###----- That's all, folks --------------------------------------------------
-#! /usr/bin/python
+#! @PYTHON@
###
### Convert a directory tree of audio files
###
###--------------------------------------------------------------------------
### Special initialization.
-VERSION = '1.0.0~pre'
+VERSION = '@VERSION@'
## GLib.
G.threads_init()