mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-11 13:13:37 +01:00
21 lines
506 B
Plaintext
21 lines
506 B
Plaintext
|
|
||
|
all: ../approved-routers
|
||
|
|
||
|
update:
|
||
|
wget -q -O - http://tor.noreply.org/tor/status-vote/current/consensus | \
|
||
|
./process-consensus
|
||
|
|
||
|
.PHONY: approved-routers-auto
|
||
|
approved-routers-auto:
|
||
|
./build-approved-routers > "$@"
|
||
|
|
||
|
.INTERMEDIATE: approved-routers
|
||
|
approved-routers: approved-routers-auto /etc/tor/approved-routers
|
||
|
cat $^ > "$@"
|
||
|
|
||
|
../approved-routers: approved-routers
|
||
|
if ! diff -q "$<" "$@"; then \
|
||
|
mv "$<" "$@" &&\
|
||
|
(! [ -e /var/run/tor/tor.pid ] || kill -HUP `cat /var/run/tor/tor.pid`) ; \
|
||
|
fi
|