"Fossies" - the Fresh Open Source Software Archive

Member "burncdda-1.8.3/install.sh" (17 May 2011, 2181 Bytes) of package /linux/privat/old/burncdda-1.8.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

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