mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-07 00:55:28 +00:00
Improve create_plugin.py
and the generated create_dev_link.sh
.
This commit is contained in:
parent
c9e4d286c3
commit
4c3d068f0c
@ -1,7 +1,11 @@
|
||||
#!/bin/bash
|
||||
cd /home/vampas/projects/DelugeNotify/deluge/plugins/freespace
|
||||
mkdir temp
|
||||
export PYTHONPATH=./temp
|
||||
python setup.py build develop --install-dir ./temp
|
||||
cp ./temp/FreeSpace.egg-link .config/plugins
|
||||
rm -fr ./temp
|
||||
BASEDIR=$(cd `dirname $0` && pwd)
|
||||
CONFIG_DIR=$( test -z $1 && echo "" || 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
|
||||
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
|
||||
cd /home/vampas/projects/DelugeNotify/deluge/plugins/notifications
|
||||
mkdir temp
|
||||
export PYTHONPATH=./temp
|
||||
python setup.py build develop --install-dir ./temp
|
||||
cp ./temp/Notifications.egg-link .config//plugins
|
||||
rm -fr ./temp
|
||||
BASEDIR=$(cd `dirname $0` && pwd)
|
||||
CONFIG_DIR=$( test -z $1 && echo "" || 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
|
||||
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
|
||||
mkdir temp
|
||||
export PYTHONPATH=./temp
|
||||
python setup.py develop --install-dir ./temp
|
||||
cp ./temp/Stats.egg-link ~/.config/deluge/plugins
|
||||
rm -fr ./temp
|
||||
BASEDIR=$(cd `dirname $0` && pwd)
|
||||
CONFIG_DIR=$( test -z $1 && echo "" || 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
|
||||
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
|
||||
cd /home/damien/Projects/deluge/deluge/plugins/webui
|
||||
mkdir temp
|
||||
export PYTHONPATH=./temp
|
||||
python setup.py build develop --install-dir ./temp
|
||||
cp ./temp/WebUi.egg-link /home/damien/.config/deluge/plugins
|
||||
rm -fr ./temp
|
||||
BASEDIR=$(cd `dirname $0` && pwd)
|
||||
CONFIG_DIR=$( test -z $1 && echo "/home/damien/.config/deluge/" || 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
|
||||
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
|
||||
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
|
||||
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 %(configdir)s/plugins
|
||||
cp $BASEDIR/temp/*.egg-link $CONFIG_DIR/plugins
|
||||
rm -fr $BASEDIR/temp
|
||||
"""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user