<commit_before>NAME = plugin.video.xbmctorrent
VERSION := 0.2.$(shell git rev-list HEAD --count)
ZIP_FILE := $(NAME)_$(VERSION).zip

all: clean version zip

version:
	sed s/\$$VERSION/$(VERSION)/g < addon.xml.tpl > addon.xml

zip:
	git archive --prefix $(NAME)/ master | tar -x -C /tmp
	sed s/\$$VERSION/$(VERSION)/g < addon.xml.tpl > /tmp/$(NAME)/addon.xml
	cp -R resources/bin /tmp/$(NAME)/resources
	cd /tmp && zip -9 -r $(ZIP_FILE) $(NAME)
	mv /tmp/$(ZIP_FILE) .
	rm -rf /tmp/$(NAME)

clean:
	rm -rf addon.xml
	rm -rf /tmp/$(NAME)
<commit_msg>Switch to semver, Closes #19<commit_after>NAME = plugin.video.xbmctorrent
VERSION := $(shell git describe)
ZIP_FILE := $(NAME)_$(VERSION).zip

all: clean version zip

version:
	sed s/\$$VERSION/$(VERSION)/g < addon.xml.tpl > addon.xml

zip:
	git archive --prefix $(NAME)/ $(VERSION) | tar -x -C /tmp
	sed s/\$$VERSION/$(VERSION)/g < addon.xml.tpl > /tmp/$(NAME)/addon.xml
	cp -R resources/bin /tmp/$(NAME)/resources
	rm -f /tmp/$(NAME)/addon.xml.tpl
	cd /tmp && zip -9 -r $(ZIP_FILE) $(NAME)
	mv /tmp/$(ZIP_FILE) .
	rm -rf /tmp/$(NAME)

clean:
	rm -rf addon.xml
	rm -rf /tmp/$(NAME)

{'fraction_non_alphanumeric': 0.20619469026548673, 'fraction_numerical': 0.005309734513274336, 'mean_word_length': 3.2518796992481205, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 11}, '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': '1899443', 'n_tokens_mistral': 460, 'n_tokens_neox': 461, 'n_words': 117}