mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 00:18:39 +00:00
Improve create_plugin.py
and the generated create_dev_link.sh
.
This commit is contained in:
parent
c9e4d286c3
commit
4c3d068f0c
5 changed files with 44 additions and 24 deletions
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /home/vampas/projects/DelugeNotify/deluge/plugins/freespace
|
BASEDIR=$(cd `dirname $0` && pwd)
|
||||||
mkdir temp
|
CONFIG_DIR=$( test -z $1 && echo "" || echo "$1")
|
||||||
export PYTHONPATH=./temp
|
[ -d "$CONFIG_DIR/plugins" ] || echo "Config dir "$CONFIG_DIR" is either not a directory or is not a proper deluge config directory. Exiting"
|
||||||
python setup.py build develop --install-dir ./temp
|
[ -d "$CONFIG_DIR/plugins" ] || exit 1
|
||||||
cp ./temp/FreeSpace.egg-link .config/plugins
|
cd $BASEDIR
|
||||||
rm -fr ./temp
|
test -d $BASEDIR/temp || mkdir $BASEDIR/temp
|
||||||
|
export PYTHONPATH=$BASEDIR/temp
|
||||||
|
python setup.py build develop --install-dir $BASEDIR/temp
|
||||||
|
cp $BASEDIR/temp/*.egg-link $CONFIG_DIR/plugins
|
||||||
|
rm -fr $BASEDIR/temp
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /home/vampas/projects/DelugeNotify/deluge/plugins/notifications
|
BASEDIR=$(cd `dirname $0` && pwd)
|
||||||
mkdir temp
|
CONFIG_DIR=$( test -z $1 && echo "" || echo "$1")
|
||||||
export PYTHONPATH=./temp
|
[ -d "$CONFIG_DIR/plugins" ] || echo "Config dir "$CONFIG_DIR" is either not a directory or is not a proper deluge config directory. Exiting"
|
||||||
python setup.py build develop --install-dir ./temp
|
[ -d "$CONFIG_DIR/plugins" ] || exit 1
|
||||||
cp ./temp/Notifications.egg-link .config//plugins
|
cd $BASEDIR
|
||||||
rm -fr ./temp
|
test -d $BASEDIR/temp || mkdir $BASEDIR/temp
|
||||||
|
export PYTHONPATH=$BASEDIR/temp
|
||||||
|
python setup.py build develop --install-dir $BASEDIR/temp
|
||||||
|
cp $BASEDIR/temp/*.egg-link $CONFIG_DIR/plugins
|
||||||
|
rm -fr $BASEDIR/temp
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
mkdir temp
|
BASEDIR=$(cd `dirname $0` && pwd)
|
||||||
export PYTHONPATH=./temp
|
CONFIG_DIR=$( test -z $1 && echo "" || echo "$1")
|
||||||
python setup.py develop --install-dir ./temp
|
[ -d "$CONFIG_DIR/plugins" ] || echo "Config dir "$CONFIG_DIR" is either not a directory or is not a proper deluge config directory. Exiting"
|
||||||
cp ./temp/Stats.egg-link ~/.config/deluge/plugins
|
[ -d "$CONFIG_DIR/plugins" ] || exit 1
|
||||||
rm -fr ./temp
|
cd $BASEDIR
|
||||||
|
test -d $BASEDIR/temp || mkdir $BASEDIR/temp
|
||||||
|
export PYTHONPATH=$BASEDIR/temp
|
||||||
|
python setup.py build develop --install-dir $BASEDIR/temp
|
||||||
|
cp $BASEDIR/temp/*.egg-link $CONFIG_DIR/plugins
|
||||||
|
rm -fr $BASEDIR/temp
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /home/damien/Projects/deluge/deluge/plugins/webui
|
BASEDIR=$(cd `dirname $0` && pwd)
|
||||||
mkdir temp
|
CONFIG_DIR=$( test -z $1 && echo "/home/damien/.config/deluge/" || echo "$1")
|
||||||
export PYTHONPATH=./temp
|
[ -d "$CONFIG_DIR/plugins" ] || echo "Config dir "$CONFIG_DIR" is either not a directory or is not a proper deluge config directory. Exiting"
|
||||||
python setup.py build develop --install-dir ./temp
|
[ -d "$CONFIG_DIR/plugins" ] || exit 1
|
||||||
cp ./temp/WebUi.egg-link /home/damien/.config/deluge/plugins
|
cd $BASEDIR
|
||||||
rm -fr ./temp
|
test -d $BASEDIR/temp || mkdir $BASEDIR/temp
|
||||||
|
export PYTHONPATH=$BASEDIR/temp
|
||||||
|
python setup.py build develop --install-dir $BASEDIR/temp
|
||||||
|
cp $BASEDIR/temp/*.egg-link $CONFIG_DIR/plugins
|
||||||
|
rm -fr $BASEDIR/temp
|
||||||
|
|
|
@ -398,11 +398,14 @@ pkg_resources.declare_namespace(__name__)
|
||||||
|
|
||||||
CREATE_DEV_LINK = """#!/bin/bash
|
CREATE_DEV_LINK = """#!/bin/bash
|
||||||
BASEDIR=$(cd `dirname $0` && pwd)
|
BASEDIR=$(cd `dirname $0` && pwd)
|
||||||
|
CONFIG_DIR=$( test -z $1 && echo "%(configdir)s" || echo "$1")
|
||||||
|
[ -d "$CONFIG_DIR/plugins" ] || echo "Config dir \"$CONFIG_DIR\" is either not a directory or is not a proper deluge config directory. Exiting"
|
||||||
|
[ -d "$CONFIG_DIR/plugins" ] || exit 1
|
||||||
cd $BASEDIR
|
cd $BASEDIR
|
||||||
test -d $BASEDIR/temp || mkdir $BASEDIR/temp
|
test -d $BASEDIR/temp || mkdir $BASEDIR/temp
|
||||||
export PYTHONPATH=$BASEDIR/temp
|
export PYTHONPATH=$BASEDIR/temp
|
||||||
python setup.py build develop --install-dir $BASEDIR/temp
|
python setup.py build develop --install-dir $BASEDIR/temp
|
||||||
cp $BASEDIR/temp/*.egg-link %(configdir)s/plugins
|
cp $BASEDIR/temp/*.egg-link $CONFIG_DIR/plugins
|
||||||
rm -fr $BASEDIR/temp
|
rm -fr $BASEDIR/temp
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue