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 2 2 # 3 3 # Create ~/.mediaserv and copy the static files we care about into it. 4 4 5 STATIC_DIR=`dirname "$0"` 6 STATIC_DIR=`cd "$STATIC_DIR"; pwd` 5 STATIC_DIR="@@STATIC_DIR@@" 7 6 8 7 [ -d ~/.mediaserv ] || mkdir ~/.mediaserv || exit 9 8 [ -f ~/.mediaserv/config ] && touch ~/.mediaserv/config 10 9 11 cp -v up "${STATIC_DIR}/resources/"* ~/.mediaserv/10 cp -vrp "${STATIC_DIR}/"* ~/.mediaserv/ 12 11 13 12 cp ~/.mediaserv/config ~/.mediaserv/config~ 14 13 perl -e ' … … 20 19 print; 21 20 print "$1 = $settings{$1}\n" if /(\w+)\s*=\s*/ and $settings{$1}; 22 21 } 23 ' "${STATIC_DIR}/ resources/config" >~/.mediaserv/config22 ' "${STATIC_DIR}/config" >~/.mediaserv/config 24 23 25 24 echo "Install of mediaserv complete." 26 25