Package: galan
Version: 0.3.0+beta4-1.1
Severity: wishlist
Tags: patch

galan(-real) has the sometimes useful ability to load sheets from a file at startup, specified at the command line.

From src/galan.c, lines 146-7:
>   if( argc > 1 )
>       load_sheet_from_name( argv[1] );

The galan-real(1) man page is inconsistent with this, and the wrapper script galan-wrap.sh (/usr/bin/galan) does not pass any arguments to galan-real.

My attached patch modifies galan-wrap.sh so that it passes arguments to galan-real, and updates the man pages galan(1) and galan-wrap(1) to document this change.

Please let me know if this patch is a sensible modification and if I have done everything correctly!

Thanks,
--
Steven Chamberlain
[EMAIL PROTECTED]
diff -Nru galan-0.3.0+beta4.orig/debian/galan.1 galan-0.3.0+beta4/debian/galan.1
--- galan-0.3.0+beta4.orig/debian/galan.1	2006-04-25 18:38:45.926177543 +0100
+++ galan-0.3.0+beta4/debian/galan.1	2006-04-25 19:12:00.273612140 +0100
@@ -2,7 +2,9 @@
 .SH NAME
 gAlan \- A modular, synthesiser, drum-machine, sequencer, and effects-unit (wrapper script).
 .SH SYNOPSIS
-.B galan
+.B galan [
+.I file
+.B ]
 .SH DESCRIPTION
 This manual page documents briefly the
 .B galan
@@ -10,7 +12,7 @@
 .P
 galan is a wrapper script that invokes the galan-real program, setting the LADSPA_PATH environment variable if needed.
 .SH OPTIONS
-None.
+All arguments are passed to galan-real.
 .SH ENVIRONMENT
 .TP
 .B LADSPA_PATH
diff -Nru galan-0.3.0+beta4.orig/debian/galan-real.1 galan-0.3.0+beta4/debian/galan-real.1
--- galan-0.3.0+beta4.orig/debian/galan-real.1	2006-04-25 18:38:45.926177543 +0100
+++ galan-0.3.0+beta4/debian/galan-real.1	2006-04-25 19:28:20.414906271 +0100
@@ -2,7 +2,9 @@
 .SH NAME
 gAlan \- A modular, synthesiser, drum-machine, sequencer, and effects-unit. 
 .SH SYNOPSIS
-.B galan-real
+.B galan-real [
+.I file
+.B ]
 .SH DESCRIPTION
 This manual page documents briefly the
 .B galan-real
@@ -13,7 +15,7 @@
 galan-real launches the gAlan user interface. It accepts no arguments. It is normally invoked
 by the wrapper script called galan.
 .SH OPTIONS
-None.
+If specified, sheets are loaded from \fIfile\fP at startup, otherwise a single blank sheet will be displayed. Only one \fIfile\fP argument is accepted, though it may contain several sheets.
 .SH ENVIRONMENT
 .TP
 .B LADSPA_PATH
diff -Nru galan-0.3.0+beta4.orig/debian/galan-wrap.sh galan-0.3.0+beta4/debian/galan-wrap.sh
--- galan-0.3.0+beta4.orig/debian/galan-wrap.sh	2006-04-25 18:38:45.926177543 +0100
+++ galan-0.3.0+beta4/debian/galan-wrap.sh	2006-04-25 18:39:05.019546021 +0100
@@ -13,7 +13,7 @@
       fi
     fi
 #    echo $LADSPA_PATH
-    exec /usr/bin/galan-real
+    exec /usr/bin/galan-real $*
 else
     echo "Can't find galan-real in /usr/bin."
     exit -1

Reply via email to