Add Makefile for testing, installing, and uninstalling

This commit is contained in:
Arinerron 2018-02-03 20:30:16 -08:00
parent 62cad7a6ea
commit 1cfb7796c5
No known key found for this signature in database
GPG Key ID: 99383627861C62F0
2 changed files with 19 additions and 3 deletions

19
Makefile Normal file
View File

@ -0,0 +1,19 @@
.DEFAULT_GOAL := setup
setup:
sudo pip3 install -r requirements.txt
sudo rm -rf /usr/share/onionr/
sudo rm -f /usr/bin/onionr
install:
sudo cp -rp ./onionr /usr/share/onionr
sudo sh -c "echo \"#!/bin/sh\ncd /usr/share/onionr/\n./onionr.py \\\"\\\$$@\\\"\" > /usr/bin/onionr"
sudo chmod +x /usr/bin/onionr
sudo chown -R `whoami` /usr/share/onionr/
uninstall:
sudo rm -rf /usr/share/onionr
sudo rm -f /usr/bin/onionr
test:
@cd onionr; ./tests.py

View File

@ -1,3 +0,0 @@
#!/bin/sh
cd onionr
./tests.py