deluge/run_svn.sh

46 lines
934 B
Bash
Raw Normal View History

#!/bin/sh
2007-02-06 23:58:03 +00:00
#
# This file is public domain
#
# run_svn.sh
#
# This is a small shell script to build and run
2007-02-07 00:11:15 +00:00
# a working copy of Deluge-SVN
2007-02-06 23:58:03 +00:00
#
if [ -d ./working/ ]
then
2007-02-07 00:11:15 +00:00
echo " Removing old files: "
2007-02-07 00:19:14 +00:00
rm -rf working
2007-02-06 23:58:03 +00:00
fi
2007-02-07 00:11:15 +00:00
echo " Creating new working directory: "
2007-02-07 00:19:14 +00:00
mkdir working/ working/glade/ working/pixmaps/
2007-02-07 00:11:15 +00:00
echo " Updating to latest SVN version: "
svn update
2007-02-07 00:11:15 +00:00
echo " Copy source to working directory: "
for file in $(echo src/*)
do
2007-02-07 00:19:14 +00:00
cp $file working/
2007-02-07 00:11:15 +00:00
done
echo " Copying data to working directory: "
2007-02-07 01:02:47 +00:00
for file in $(echo src/glade/*)
2007-02-07 00:11:15 +00:00
do
2007-02-07 00:19:14 +00:00
cp $file working/glade/
2007-02-07 00:11:15 +00:00
done
2007-02-07 01:02:47 +00:00
for file in $(echo src/pixmaps/*)
2007-02-07 00:11:15 +00:00
do
2007-02-07 00:19:14 +00:00
cp $file working/pixmaps/
2007-02-07 00:11:15 +00:00
done
echo " Building Deluge-SVN: "
python setup.py build
2007-02-07 00:11:15 +00:00
echo " Copying C++ module to current directory: "
2007-02-06 23:58:03 +00:00
for file in $(echo build/*)
do
if [ -e $file/deluge/deluge_core.so ]
then
2007-02-07 00:19:14 +00:00
cp $file/deluge/deluge_core.so working/
2007-02-06 23:58:03 +00:00
fi
done
2007-02-07 00:11:15 +00:00
echo " Launching Deluge-SVN: "
2007-02-06 23:58:03 +00:00
python working/delugegtk.py