nuke the demo-script
[paraslash.git] / scripts / demo-script
diff --git a/scripts/demo-script b/scripts/demo-script
deleted file mode 100755 (executable)
index a6e29fc..0000000
+++ /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