Add Makefile for testing, installing, and uninstalling
This commit is contained in:
parent
62cad7a6ea
commit
1cfb7796c5
2 changed files with 19 additions and 3 deletions
19
Makefile
Normal file
19
Makefile
Normal 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
|
3
test.sh
3
test.sh
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
cd onionr
|
||||
./tests.py
|
Loading…
Reference in a new issue