updated run_svn.sh script

This commit is contained in:
Zach Tibbitts 2007-02-07 00:11:15 +00:00
parent 156fc98db1
commit 967632cb84
1 changed files with 24 additions and 34 deletions

View File

@ -5,51 +5,41 @@
# run_svn.sh # run_svn.sh
# #
# This is a small shell script to build and run # This is a small shell script to build and run
# a working copy of Deluge without installing # a working copy of Deluge-SVN
# it globally. This is only intended for
# testing SVN versions of Deluge, and should
# not be used for a final installation.
#
# I make no guarantees that this script will
# work for you, but it does build and run
# properly on my system.
# #
if [ -d ./working/ ] if [ -d ./working/ ]
then then
echo "*******************************************" echo " Removing old files: "
echo " Removing old files " rm -rvf working
echo "*******************************************"
rm -rf working/
fi fi
echo "*******************************************" echo " Creating new working directory: "
echo " Updating to latest SVN version " mkdir -v working/ working/glade/ working/pixmaps/
echo "*******************************************" echo " Updating to latest SVN version: "
svn update svn update
echo "*******************************************" echo " Copy source to working directory: "
echo " Copy source to working directory " for file in $(echo src/*)
echo "*******************************************" do
cp -r src working cp -v $file working/
echo "*******************************************" done
echo " Linking files to working directory " echo " Copying data to working directory: "
echo "*******************************************" for file in $(echo glade/*)
ln -s ../glade working/ do
ln -s ../pixmaps working/ cp -v $file working/glade/
echo "*******************************************" done
echo " Building Deluge-SVN " for file in $(echo pixmaps/*)
echo "*******************************************" do
cp -v $file working/pixmaps/
done
echo " Building Deluge-SVN: "
python setup.py build python setup.py build
echo "*******************************************" echo " Copying C++ module to current directory: "
echo " Linking C++ module to current directory "
echo "*******************************************"
for file in $(echo build/*) for file in $(echo build/*)
do do
if [ -e $file/deluge/deluge_core.so ] if [ -e $file/deluge/deluge_core.so ]
then then
ln -s ../$file/deluge/deluge_core.so working/ cp -v $file/deluge/deluge_core.so working/
fi fi
done done
echo "*******************************************" echo " Launching Deluge-SVN: "
echo " Launching Deluge-SVN "
echo "*******************************************"
python working/delugegtk.py python working/delugegtk.py