-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·77 lines (69 loc) · 2.14 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/sh
#--------------------------------------------------------------
# This is the burnCDDA install script.
#
# burnCDDA is a shell script for burning Audio-CDs with cdrdao
# and cdrecord.
#
# (C) 2001 by Thorsten Muehlfelder <~thenktor~at~gmail~dot~com~>
# burnCDDA comes with ABSOLUTELY NO WARRANTY.
# This is free software, and you are welcome to redistribute it
# under terms of the GNU General Public License (version 2)
# as published by the Free Software Foundation.
#--------------------------------------------------------------
echo "burnCDDA (C) 2001, by Thorsten Muehlfelder"
echo "burnCDDA comes with ABSOLUTELY NO WARRANTY;"
echo "This is free software, and you are welcome"
echo "to redistribute it under certain conditions."
echo "Take a look at LICENSE for more information!"
echo ""
case $1 in
-bo)
echo "Only installing the burncdda script!"
if [ ! -d "${DESTDIR}/usr/bin/" ]; then
mkdir -p -m 755 "${DESTDIR}/usr/bin/"
fi
install -m 755 burncdda "${DESTDIR}/usr/bin/"
exit 0
;;
*)
;;
esac
echo "Installing files..."
if [ ! -d "${DESTDIR}/usr/bin/" ]; then
mkdir -p -m 755 "${DESTDIR}/usr/bin/"
fi
install -m 755 burncdda "${DESTDIR}/usr/bin/"
if [ ! -d "${DESTDIR}/usr/share/burncdda" ]; then
mkdir -p -m 755 "${DESTDIR}/usr/share/burncdda"
fi
install -m 644 *.func "${DESTDIR}/usr/share/burncdda/"
install -m 644 burncdda.conf "${DESTDIR}/usr/share/burncdda/burncdda.conf.default"
if [ ! -d "${DESTDIR}/usr/man/man1/" ]; then
mkdir -p -m 755 "${DESTDIR}/usr/man/man1/"
fi
install -m 644 burncdda.1 "${DESTDIR}/usr/man/man1"
if [ ! -d "${DESTDIR}/etc/" ]; then
mkdir -p -m 755 "${DESTDIR}/etc/"
fi
if [ -e "${DESTDIR}/etc/burncdda.conf" ]; then
install -m 644 burncdda.conf "${DESTDIR}/etc/burncdda.conf.new"
else
install -m 644 burncdda.conf "${DESTDIR}/etc/"
fi
echo ""
echo "Looking for dialog (required):"
which dialog
echo ""
echo "It is recommended that you have these tools:"
echo "cdrecord cdrdao mplayer"
echo ""
echo "If you don't have mplayer you should have:"
echo "mpg123 oggdec mppdec flac"
echo ""
echo "Optional tools:"
echo "normalize sox mp3_check ogginfo"
echo ""
echo ""
echo "Please edit /etc/burncdda.conf now!"
echo ""