From 416bc2cb4ecd0efafe5cd24ed5bf10488f74e65f Mon Sep 17 00:00:00 2001 From: mdw Date: Sat, 2 Feb 2002 19:18:01 +0000 Subject: [PATCH] Construct text `samples' automatically. --- sounds/.cvsignore | 2 ++ sounds/Makefile.m4 | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sounds/SAMPLES | 48 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 sounds/.cvsignore create mode 100644 sounds/Makefile.m4 create mode 100644 sounds/SAMPLES diff --git a/sounds/.cvsignore b/sounds/.cvsignore new file mode 100644 index 0000000..91c5600 --- /dev/null +++ b/sounds/.cvsignore @@ -0,0 +1,2 @@ +Makefile.am +Makefile.in diff --git a/sounds/Makefile.m4 b/sounds/Makefile.m4 new file mode 100644 index 0000000..906a41e --- /dev/null +++ b/sounds/Makefile.m4 @@ -0,0 +1,67 @@ +## -*-makefile-*- +## +## $Id: Makefile.m4,v 1.1 2002/02/02 19:18:01 mdw Exp $ +## +## Makefile for sounds subdirectory +## +## (c) 2002 Mark Wooding +## + +##----- Licensing notice ---------------------------------------------------- +## +## This file is part of Jog: Programming for a jogging machine. +## +## Jog 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. +## +## Jog 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 Jog; if not, write to the Free Software Foundation, +## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +##----- Revision history ---------------------------------------------------- +## +## $Log: Makefile.m4,v $ +## Revision 1.1 2002/02/02 19:18:01 mdw +## Construct text `samples' automatically. +## + +AUTOMAKE_OPTIONS = foreign + +changecom +changequote([[, ]]) +define([[getsamples]], [[dnl +sed '/^[ ]*\($$2\|#\)/d' <$3SAMPLES | dnl + while read tag msg; do $1; done]]) + +audiodir = @audiodir@ + +## SAMPLES = syscmd(getsamples([[echo -n " \\ + $tag.wav"]])) +SAMPLES = +TXTSAMPLES = syscmd(getsamples([[echo -n " \\ + $tag.txt"]])) + +audio_DATA = $(SAMPLES) $(TXTSAMPLES) + +EXTRA_DIST = \ + $(audio_DATA) SAMPLES Makefile.m4 + +$(TXTSAMPLES): txtsamples.stamp + +txtsamples.stamp: SAMPLES + getsamples([[echo "$$msg" >$$tag.txt]], [[$]], [[$(srcdir)/]]) + echo timestamp >txtsamples.stamp + +Makefile.am: Makefile.m4 SAMPLES + cd $(srcdir) && m4 Makefile.m4 >Makefile.am + +CLEANFILES = $(TXTSAMPLES) txtsamples.stamp + +##----- That's all, folks --------------------------------------------------- diff --git a/sounds/SAMPLES b/sounds/SAMPLES new file mode 100644 index 0000000..9ebee92 --- /dev/null +++ b/sounds/SAMPLES @@ -0,0 +1,48 @@ +## SAMPLES +## +## One per line, tag on the left, textual message on the right. + +# Numbers + +n-0 zero +n-1 one +n-2 two +n-3 three +n-4 four +n-5 five +n-6 six +n-7 seven +n-8 eight +n-9 nine +n-10 ten +n-11 eleven +n-12 twelve +n-13 thirteen +n-14 fourteen +n-15 fifteen +n-16 sixteen +n-17 seventeen +n-18 eighteen +n-19 nineteen +n-20 twenty +n-30 thirty +n-40 forty +n-50 fifty +n-60 sixty +n-70 seventy +n-80 eighty +n-90 ninety +n-hun hundred +n-thou thousand +n-and and +n-point point +n-minus minus +n-exp times ten to the + +# Errors + +e-error Error +e-abort Fatal error +e-ctx in context +e-code code +e-reason reason -- 2.11.0