Skip to content

Commit

Permalink
Added tbb-diff-2 target
Browse files Browse the repository at this point in the history
  • Loading branch information
pyllyukko committed Jan 29, 2018
1 parent a78f66a commit 389f9ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit 389f9ba

@pyllyukko
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👹

Please sign in to comment.