From dec7044cb1edcfa814998a34d78e228f74b3e7ab Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 15 Jul 2012 23:30:00 +0200 Subject: [PATCH] fade: Generate fade.ggo from m4 template. This allows to use the generic --config file template. --- m4/gengetopt/fade.m4 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/m4/gengetopt/fade.m4 b/m4/gengetopt/fade.m4 index 450e0542..7aab0521 100644 --- a/m4/gengetopt/fade.m4 +++ b/m4/gengetopt/fade.m4 @@ -1,8 +1,15 @@ args "--conf-parser --no-handle-version" +include(header.m4) +define(CURRENT_PROGRAM,para_fade) +define(DEFAULT_CONFIG_FILE,~/.paraslash/fade.conf) + section "General options" ######################### + +include(config_file.m4) + option "mode" o #~~~~~~~~~~~~~~ "how to fade volume" @@ -26,12 +33,6 @@ option "mode" o snooze: Fade out, sleep a bit and fade in. " -option "config-file" c -#~~~~~~~~~~~~~~~~~~~~~ -"(default='~/.paraslash/fade.conf')" - string typestr = "filename" - optional - option "mixer-api" a #~~~~~~~~~~~~~~~~~~~ "choose the mixer API" @@ -224,3 +225,4 @@ option "fade-time" t int typestr = "seconds" default = "5" optional + -- 2.39.2