serialize on quit (not happy path anymore)
This commit is contained in:
parent
fb8a03ae22
commit
5b5ce1995a
1 changed files with 85 additions and 16 deletions
|
|
@ -1,11 +1,9 @@
|
|||
GLOBAL_IP=`dig +short @dns.toys -4 ip`
|
||||
|
||||
.PHONY: server server-opt
|
||||
server: surnames.txt names.txt
|
||||
GLOBAL_IP=$(GLOBAL_IP) cargo run
|
||||
server: surnames.txt names.txt ipaddr.txt
|
||||
GLOBAL_IP=$(cat ipaddr.txt) cargo run
|
||||
|
||||
server-opt: surnames.txt names.txt
|
||||
GLOBAL_IP=$(GLOBAL_IP) cargo run --release
|
||||
server-opt: surnames.txt names.txt ipaddr.txt
|
||||
GLOBAL_IP=$(cat ipaddr.txt) cargo run --release
|
||||
|
||||
surnames.txt:
|
||||
curl https://raw.githubusercontent.com/Hyneman/moby-project/672f6bdca054c42d375f065ffee87e8ceba0c242/moby/mwords/21986na.mes |\
|
||||
|
|
@ -15,3 +13,6 @@ names.txt:
|
|||
curl https://raw.githubusercontent.com/Hyneman/moby-project/672f6bdca054c42d375f065ffee87e8ceba0c242/moby/mwords/3897male.nam > male.txt
|
||||
curl https://raw.githubusercontent.com/Hyneman/moby-project/672f6bdca054c42d375f065ffee87e8ceba0c242/moby/mwords/4946fema.len > female.txt
|
||||
cat male.txt female.txt | sort | uniq > names.txt
|
||||
|
||||
ipaddr.txt:
|
||||
dig +short @dns.toys -4 ip > ipaddr.txt
|
||||
|
|
|
|||
Loading…
Reference in a new issue