Install script.

pull/18/head
David Trail 10 years ago
parent c17e860856
commit f30ed08b3e

@ -18,6 +18,8 @@ The way I personally install Shreddit is via a handy tool called `virtualenv` wh
5. Copy `shreddit.cfg.example` to something else and edit it to your liking.
6. Run `python shreddit.py -c YOUR_CONFIG_FILE.cfg`.
Alternatively try to run `./install.sh` and it will attempt to do it all for you.
Notes:
- The script *does* work with Python versions 2 and 3 but people often get in a mess with pip versions, python versions and virtulenv versions. Make sure that your Python/pip/virtualenv are all the same version. If you ran the above code it *should* work as stated.

@ -0,0 +1,11 @@
#!/usr/bin/env sh
virtualenv .
source ./bin/activate
pip install -r requirements.txt
if [ ! -f "shreddit.cfg" ]; then
cp "shreddit.cfg.example" "shreddit.cfg"
$EDITOR shreddit.cfg
fi
Loading…
Cancel
Save