diff --git a/Makefile b/Makefile index 0b6ef185..7e33cffa 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,10 @@ regex = ^\(user_\)\?pref/s/^.*pref("\([^"]\+\)",\s*\([^)]\+\).*$$ tbb-diff: 000-tor-browser.js diff <(sed -n '/$(regex)/\1 = \2/p' user.js | sort) <(sed -n '/$(regex)/\1 = \2/p' $< | sort) +.PHONY: tbb-diff-2 +tbb-diff-2: 000-tor-browser.js + for setting in $$( comm -12 <(sed -n '/$(regex)/\1/p' user.js | sort) <(sed -n '/$(regex)/\1/p' $< | sort)); do diff <(grep "$${setting}" user.js | sed -n '/$(regex)/\1 = \2/p' | sort) <(grep "$${setting}" $< | sed -n '/$(regex)/\1 = \2/p' | sort); done + .PHONY: tbb-missing-from-user.js tbb-missing-from-user.js: 000-tor-browser.js comm -13 <(sed -n '/$(regex)/\1/p' user.js | sort) <(sed -n '/$(regex)/\1/p' $< | sort)