Ticket #13619: patch-install_sh.diff

File patch-install_sh.diff, 809 bytes (added by ecronin (Eric Cronin), 17 years ago)
  • install.sh

    old new  
    22#
    33# Create ~/.mediaserv and copy the static files we care about into it.
    44
    5 STATIC_DIR=`dirname "$0"`
    6 STATIC_DIR=`cd "$STATIC_DIR"; pwd`
     5STATIC_DIR="@@STATIC_DIR@@"
    76
    87[ -d ~/.mediaserv ] || mkdir ~/.mediaserv || exit
    98[ -f ~/.mediaserv/config ] && touch ~/.mediaserv/config
    109
    11 cp -vup "${STATIC_DIR}/resources/"* ~/.mediaserv/
     10cp -vrp "${STATIC_DIR}/"* ~/.mediaserv/
    1211
    1312cp ~/.mediaserv/config ~/.mediaserv/config~
    1413perl -e '
     
    2019    print;
    2120    print "$1 = $settings{$1}\n" if /(\w+)\s*=\s*/ and $settings{$1};
    2221  }
    23 ' "${STATIC_DIR}/resources/config" >~/.mediaserv/config
     22' "${STATIC_DIR}/config" >~/.mediaserv/config
    2423
    2524echo "Install of mediaserv complete."
    2625