Ticket #36 (closed enhancement: fixed)

Opened 2 years ago

Last modified 1 year ago

Add .ifexists, .else and .endif meta commands

Reported by: cjvdb Assigned to: lennart
Priority: normal Milestone: 0.9.6
Component: core Severity: normal
Keywords: Cc:

Description

The Debian packages need a way to detect at runtime which modules are installed and/or which other packages are on the system and based on that load different modules. This patch adds .ifexists which can be used like this:

.ifexists /path/to/any/file
load-module ...
set-default-sink ...
etc ...
.else
load-module ...
.endif

Attachments

02_ifexists_else_endif.dpatch (4.3 kB) - added by cjvdb on 10/06/06 17:06:10.

Change History

10/06/06 17:06:10 changed by cjvdb

  • attachment 02_ifexists_else_endif.dpatch added.

05/23/07 17:48:42 changed by lennart

  • status changed from new to assigned.
  • milestone set to 0.9.6.

05/27/07 01:39:34 changed by lennart

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [1456]) Add a new meta command ".ifexists" to the CLI language, to execute commands only if a specified file exists. Original patch from cjvdb. Closes #36