Debian Codegraph @

packaging/request

raw
1 # -*- sh -*-
2 # request script for normalize
3 #
4 # This finds where xmms effect plugins should go
5
6 PATH=/usr/sadm/bin:${PATH}:/usr/local/bin:/opt/sfw/bin
7
8 ask_path () {
9 PROMPT="Path to the XMMS effects plugin directory? "
10 HELP="An effects plugin for XMMS will be installed at the location entered."
11 result=`ckpath -ayw -d "$XMMSPLUGINDIR" -h "$HELP" -p "$PROMPT"`
12 if [ $result = "q" ]; then
13 puttext "Suspending installation at user request."
14 exit 1
15 else
16 XMMSPLUGINDIR="$result"
17 fi
18 }
19
20 puttext "Normalize includes an effects plugin for XMMS that recognizes
21 and honors relative volume adjust tags on MP3 files."
22
23 XMMSPLUGINDIR=none
24 if type xmms-config > /dev/null 2>&1; then
25 XMMSPLUGINDIR=`xmms-config --effect-plugin-dir`
26
27 puttext "An XMMS effects plugin directory has been found in $XMMSPLUGINDIR."
28 HELP="If you want to install the XMMS plugin in the default location, enter Y."
29 PROMPT="Install in $XMMSPLUGINDIR? "
30 result=`ckyorn -Q -d "a" -h "$HELP" -p "$PROMPT"`
31
32 if [ $result = "n" ]; then
33 XMMSPLUGINDIR="none"
34 ask_path
35 fi
36
37 else
38 puttext "I was unable to find XMMS on this system."
39 HELP="If you want to install the XMMS plugin, enter Y."
40 PROMPT="Install the XMMS plugin? "
41 result=`ckyorn -Q -d "a" -h "$HELP" -p "$PROMPT"`
42
43 if [ $result = "n" ]; then
44 CLASSES=none
45 else
46 ask_path
47 fi
48 fi
49
50 if [ $XMMSPLUGINDIR = "none" ]; then
51 puttext "Not installing XMMS plugin."
52 CLASSES=none
53 else
54 puttext "Will install XMMS plugin in $XMMSPLUGINDIR."
55 CLASSES="none xmms"
56 fi
57
58 echo "XMMSPLUGINDIR=$XMMSPLUGINDIR" >> $1
59 echo "CLASSES=$CLASSES" >> $1