X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=scripts%2Fdemo-script;fp=scripts%2Fdemo-script;h=0000000000000000000000000000000000000000;hp=a6e29fc0ca86512b88be1176657c2cd78fd0deae;hb=1c9220bc80c65cd8a9f8e942d8abb36c6120e487;hpb=501edee5b98e4133bb64f41f78ffec1cd6f91f7e diff --git a/scripts/demo-script b/scripts/demo-script deleted file mode 100755 index a6e29fc0..00000000 --- a/scripts/demo-script +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -bin="para_client para_audioc para_audiod para_gui" # the binaries we need -log="`pwd`/demo-log.$$.log" -dir="$HOME/.paraslash" -client_conf="$dir/client.conf" -audioc_conf="$dir/audioc.conf" -server=www.paraslash.org -proj=paraslash-0.2.13 -df=$proj.tar.bz2 # download file -url=http://$server/versions/$df -kf="$dir/key.anonymous" # key file -key_url=http://$server/key.anonymous -socket="$dir/socket" -receiver_opts="mp3:http -i $server -p 8009" -audiod_log="$dir/audiod.log" -audiod_opts="-FDd -L $audiod_log -s $socket" -msg() -{ - echo "`date`: $1" -} - -go() -{ - msg "downloading $df" - wget -N -q $url || return 1 - msg "decompressing" - rm -rf $proj; tar xjf $df - cd $proj || return 1 - msg "configuring (be patient, ignore warnings but not errors)" - ./configure --prefix "$HOME" >> "$log" - msg "building $bin" - make $bin >> "$log" - msg "installing" - mkdir -p $HOME/bin && install -c -s -m 755 $bin $HOME/bin || return 1 - export PATH=$HOME/bin:$PATH - msg "retrieving anonymous key" - mkdir -p $dir || return 1 - wget -q --directory-prefix=$dir $key_url || return 1 - msg "writing $client_conf" - cat << EOF > "$client_conf" - user "anonymous" - hostname "$server" - key_file "$kf" -EOF - msg "writing $audioc_conf" - echo "socket \"$socket\"" > "$audioc_conf" - (para_audioc term; killall para_audiod para_client) >> "$log" 2>&1 - msg "para_audiod $audiod_opts -r '$receiver_opts'" - para_audiod $audiod_opts -r "$receiver_opts" -w "mp3:mpg123 -" - echo "hit return to start para_gui, hit ctrl+c to abort" - read - para_gui -} - -go