<commit_before># Makefile for the irker relaying tool

VERS=$(shell irker -V | sed 's/irker version //')

docs: irker.html irker.1

irker.1: irker.xml
	xmlto man irker.xml
irker.html: irker.xml
	xmlto html-nochunks irker.xml

install: irker.1 uninstall
	install -m 755 -o 0 -g 0 -d $(ROOT)/usr/bin/
	install -m 755 -o 0 -g 0 irker $(ROOT)/usr/bin/irker.py
	install -m 755 -o 0 -g 0 -d $(ROOT)/usr/share/man/man1/
	install -m 755 -o 0 -g 0 irker.1 $(ROOT)/usr/share/man/man1/irker.1

uninstall:
	rm -f ${ROOT}/usr/bin/irker ${ROOT}/usr/share/man/man1/irker.1

clean:
	rm -f irker irker.1 irker-*.rpm irker-*.tar.gz *~
	rm -f SHIPPER.* *.html

PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable="C0103,C0111,C0301,R0201,R0902,R0903,E1101"
pylint:
	@pylint --output-format=parseable $(PYLINTOPTS) irker


SOURCES = README COPYING NEWS irker Makefile irker.xml irker-logo.jpg

version:
	@echo $(VERS)

irker-$(VERS).tar.gz: $(SOURCES) irker.1
	@ls $(SOURCES) irker.1 | sed s:^:irker-$(VERS)/: >MANIFEST
	@(cd ..; ln -s irker irker-$(VERS))
	(cd ..; tar -czf irker/irker-$(VERS).tar.gz `cat irker/MANIFEST`)
	@(cd ..; rm irker-$(VERS))

dist: irker-$(VERS).tar.gz

release: irker-$(VERS).tar.gz irker.html
	shipper -u -m -t; make clean<commit_msg>Simpler archiving production.<commit_after># Makefile for the irker relaying tool

VERS=$(shell irker -V | sed 's/irker version //')

docs: irker.html irker.1

irker.1: irker.xml
	xmlto man irker.xml
irker.html: irker.xml
	xmlto html-nochunks irker.xml

install: irker.1 uninstall
	install -m 755 -o 0 -g 0 -d $(ROOT)/usr/bin/
	install -m 755 -o 0 -g 0 irker $(ROOT)/usr/bin/irker.py
	install -m 755 -o 0 -g 0 -d $(ROOT)/usr/share/man/man1/
	install -m 755 -o 0 -g 0 irker.1 $(ROOT)/usr/share/man/man1/irker.1

uninstall:
	rm -f ${ROOT}/usr/bin/irker ${ROOT}/usr/share/man/man1/irker.1

clean:
	rm -f irker irker.1 irker-*.rpm irker-*.tar.gz *~
	rm -f SHIPPER.* *.html

PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable="C0103,C0111,C0301,R0201,R0902,R0903,E1101"
pylint:
	@pylint --output-format=parseable $(PYLINTOPTS) irker


SOURCES = README COPYING NEWS irker Makefile irker.xml irker-logo.png

version:
	@echo $(VERS)

irker-$(VERS).tar.gz: $(SOURCES) irker.1
	tar --transform='s:^:irker-$(VERS)/:' --show-transformed-names -cvzf irker-$(VERS).tar.gz $(SOURCES)

dist: irker-$(VERS).tar.gz

release: irker-$(VERS).tar.gz irker.html
	shipper -u -m -t; make clean
{'fraction_non_alphanumeric': 0.18055555555555555, 'fraction_numerical': 0.04861111111111111, 'mean_word_length': 3.4126126126126124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '3759036', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1066, 'n_words': 259}