Skip to content

Commit d601250

Browse files
committed
changing default install dir to ~/.local/pyroscope
1 parent aaa4914 commit d601250

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

docs/advanced-monitoring.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ need to be installed, which are not part of the core distribution.
5656

5757
.. code-block:: shell
5858
59-
~/lib/pyroscope/update-to-head.sh
60-
~/lib/pyroscope/bin/pip install -r ~/lib/pyroscope/requirements-torque.txt
59+
~/.local/pyroscope/update-to-head.sh
60+
~/.local/pyroscope/bin/pip install -r ~/.local/pyroscope/requirements-torque.txt
6161
6262
#. Activate the web server option by adding this to your ``~/.pyroscope/torque.ini``:
6363

docs/advanced-queue.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The following is how to install the *full* set of dependencies:
3737

3838
.. code-block:: shell
3939
40-
~/lib/pyroscope/bin/pip install -r ~/lib/pyroscope/requirements-torque.txt
40+
~/.local/pyroscope/bin/pip install -r ~/.local/pyroscope/requirements-torque.txt
4141
4242
Watch out for any errors, since this installs several Python extensions that *might*
4343
need some ``*-dev`` OS packages available that you don't have on your machine.

docs/howto.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ like in this example:
1414
.. code-block:: shell
1515
1616
cd ~/rtorrent
17-
~/lib/pyroscope/src/scripts/add-categories.sh books hdtv movies
17+
~/.local/pyroscope/src/scripts/add-categories.sh books hdtv movies
1818
1919
It is recommended to stick to alphanumeric category names,
2020
and use ``_`` for word separation.
@@ -31,7 +31,7 @@ you already have (and that also fit the *alphanumeric* constraint), call this:
3131
.. code-block:: shell
3232
3333
cd ~/rtorrent
34-
~/lib/pyroscope/src/scripts/add-categories.sh \
34+
~/.local/pyroscope/src/scripts/add-categories.sh \
3535
$(rtcontrol custom_1=\! -qo custom_1 | egrep '^[_a-zA-Z0-9]+$' | sort -u)
3636
3737

docs/installation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ To do that, use the following commands:
7979

8080
.. code-block:: shell
8181
82-
mkdir -p ~/bin ~/lib
83-
git clone "https://github.com/pyroscope/pyrocore.git" ~/lib/pyroscope
82+
mkdir -p ~/bin ~/.local
83+
git clone "https://github.com/pyroscope/pyrocore.git" ~/.local/pyroscope
8484
8585
# Pass "/usr/bin/python2", or whatever else fits, to the script as its
8686
# 1st argument, if the default of "/usr/bin/python" is not a suitable
8787
# version.
88-
~/lib/pyroscope/update-to-head.sh
88+
~/.local/pyroscope/update-to-head.sh
8989
9090
# Check success
9191
pyroadmin --version # call "exec $SHELL -l" if this fails, and retry

docs/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ XMLRPC
5555
.. code-block:: bash
5656
5757
$ ldd $(command which rtorrent) | grep libxmlrpc.so
58-
libxmlrpc.so.3 => /home/pyroscope/lib/rtorrent-0.9.6/lib/libxmlrpc.so.3 …
58+
libxmlrpc.so.3 => /home/pyroscope/.local/rtorrent/0.9.6-PS-1.0/lib/libxmlrpc.so.3 …
5959
6060
6161
Quick Start Guide

docs/updating.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ These steps should make a copy of pretty much anything important:
2727
.. code-block:: bash
2828
2929
tar cvfz /tmp/pyroscope-backup-$USER-$(date +'%Y-%m-%d').tgz \
30-
~/.pyroscope/ ~/lib/pyroscope/
30+
~/.pyroscope/ ~/.local/pyroscope/
3131
3232
#. Depending on how you install rTorrent, make a copy of the rTorrent
3333
executable. Note that the ``rTorrent-PS`` build script installs into
@@ -80,7 +80,7 @@ Then to **update** an existing installation, use these commands:
8080

8181
.. code-block:: bash
8282
83-
cd ~/lib/pyroscope
83+
cd ~/.local/pyroscope
8484
./update-to-head.sh
8585
8686
@@ -123,7 +123,7 @@ these commands (assuming the standard installation paths):
123123

124124
.. code-block:: bash
125125
126-
cd ~/lib/pyroscope
126+
cd ~/.local/pyroscope
127127
source bin/activate
128128
svn update
129129
git clone git://github.com/pyroscope/pyrobase.git pyrobase

src/scripts/make-rtorrent-config.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
#
55

66
export RT_HOME="${RT_HOME:-$HOME/rtorrent}"
7+
8+
INSTALL_ROOT="$(command cd $(dirname "$0") >/dev/null && pwd)"
9+
INSTALL_ROOT="$(dirname $(dirname "$INSTALL_ROOT"))"
10+
711
mkdir -p "$RT_HOME"
812
command cd "$RT_HOME"
913

1014
# Create "rtorrent.rc"
1115
echo "*** Creating 'rtorrent.rc' in '$RT_HOME'..."
12-
sed -e "s:RT_HOME:$RT_HOME:" <~/lib/pyroscope/docs/examples/rtorrent.rc >$RT_HOME/rtorrent.rc
16+
sed -e "s:RT_HOME:$RT_HOME:" <"$INSTALL_ROOT/docs/examples/rtorrent.rc" >"$RT_HOME/rtorrent.rc"
1317

1418
# Download pimp-my-box source
1519
echo "*** Downloading 'rtorrent.d' snippets..."

0 commit comments

Comments
 (0)