Lib/std/c/, create_cproject: Create man page template
[sunny256-utils.git] / audacity
blobfc157fbe36535a7e1811cb0203743024fb023e8a
1 #!/usr/bin/env bash
3 #=======================================================================
4 # audacity
5 # File ID: 2c780c66-e36e-11e5-a57a-02010e0a6634
7 # Audacity wrapper
9 # Author: Øyvind A. Holm <sunny@sunbase.org>
10 # License: GNU General Public License version 2 or later.
11 #=======================================================================
13 progname=audacity
14 VERSION=0.3.2
16 conffile=~/.audacity-data/audacity.cfg
18 if test -e "$conffile"; then
19 # Export audio to the current directory
20 perl -pi -e 's/^(DefaultExportPath|DefaultOpenPath|Path)=(\/.*)/$1=/' "$conffile" || exit 1
23 if test -e /usr/local/bin/audacity; then
24 /usr/local/bin/audacity "$@" &>/dev/null
25 elif test -e /usr/bin/audacity; then
26 /usr/bin/audacity "$@" &>/dev/null
27 else
28 echo $progname: Audacity isn\'t installed here >&2
29 exit 1