Onionr/Makefile

34 lines
911 B
Makefile
Raw Normal View History

.DEFAULT_GOAL := setup
setup:
sudo pip3 install -r requirements.txt
install:
2018-03-03 22:18:57 +00:00
sudo rm -rf /usr/share/onionr/
sudo rm -f /usr/bin/onionr
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:
2018-03-03 22:18:57 +00:00
@rm -rf onionr/data-backup
@mv onionr/data onionr/data-backup | true > /dev/null 2>&1
-@cd onionr; ./tests.py; ./cryptotests.py;
2018-03-03 22:18:57 +00:00
@rm -rf onionr/data
@mv onionr/data-backup onionr/data | true > /dev/null 2>&1
2018-04-16 03:11:59 +00:00
soft-reset:
2018-02-22 07:31:04 +00:00
rm -f onionr/data/blocks/*.dat | true > /dev/null 2>&1
2018-04-16 03:11:59 +00:00
rm -f onionr/data/*.db | true > /dev/null 2>&1
reset:
@echo "Hard-resetting Onionr..."
rm -rf onionr/data/ | true > /dev/null 2>&1
@./RUN-LINUX.sh version | grep -v "Failed" --color=always