<commit_before>.PHONY: all prepublish
topsrcdir = ../../..

ALL_DST = flashproxy.js flashproxy.1
VERSION = $(shell sed -ne 's/^[[:space:]]*"version"[[:space:]]*:[[:space:]]*"\([^"][^"]*\)".*/\1/gp' package.json)

all: $(ALL_DST)

prepublish: flashproxy.js
flashproxy.js: $(topsrcdir)/proxy/flashproxy.js
	cp -f $< $@

flashproxy.1: main.js flashproxy.js $(topsrcdir)/mkman.sh $(topsrcdir)/mkman.inc Makefile
	./main.js --help \
	  | sed -re 's,/\S+/nodejs ./main.js,flashproxy,g' \
	  | $(topsrcdir)/mkman.sh flashproxy "$(VERSION)" "The flashproxy standalone nodejs proxy" "$(VERSION)" > "$@"

clean:
	rm -f $(ALL_DST)<commit_msg>remove one last use of `sed -r` and fix replacement snippet to apply to the plain non-Debianised package<commit_after>.PHONY: all prepublish
topsrcdir = ../../..

ALL_DST = flashproxy.js flashproxy.1
VERSION = $(shell sed -ne 's/^[[:space:]]*"version"[[:space:]]*:[[:space:]]*"\([^"][^"]*\)".*/\1/gp' package.json)

all: $(ALL_DST)

prepublish: flashproxy.js
flashproxy.js: $(topsrcdir)/proxy/flashproxy.js
	cp -f $< $@

flashproxy.1: main.js flashproxy.js $(topsrcdir)/mkman.sh $(topsrcdir)/mkman.inc Makefile
	./main.js --help | sed -e 's,node ./main.js,flashproxy,g' \
	  | $(topsrcdir)/mkman.sh flashproxy "$(VERSION)" "The flashproxy standalone nodejs proxy" "$(VERSION)" > "$@"

clean:
	rm -f $(ALL_DST)
{'fraction_non_alphanumeric': 0.22761194029850745, 'fraction_numerical': 0.004477611940298508, 'mean_word_length': 4.2795275590551185, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2736071', 'n_tokens_mistral': 544, 'n_tokens_neox': 530, 'n_words': 108}