Ticket #36 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

Add .ifexists, .else and .endif meta commands

Reported by: cjvdb Owned by: lennart
Milestone: 0.9.6 Component: core
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 5 years ago.

Change History

Changed 5 years ago by cjvdb

Changed 5 years ago by lennart

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

Changed 5 years ago 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

Note: See TracTickets for help on using tickets.