<commit_before>VER = 0.7-457y3b1
DIR = ax7z-$(VER)

.PHONY: release dist build mkpatch tag gtag retag test

release: build dist

dist: mkpatch
	rm -rf $(DIR)
	mkdir -p $(DIR)
	cp -p Release/ax7z.spi ax7z.txt $(DIR)
	(cd $(DIR); zip ../$(DIR).zip *)
	rm -rf $(DIR)
	
build:
	/cygdrive/c/Program\ Files/Application/Microsoft\ Visual\ Studio\ .NET\ 2003/Common7/IDE/devenv.exe ./00am.sln /Rebuild Release

mkpatch:
	rm -f $(DIR).patch
	-env LANG=C diff -urN -X diff-exclude.txt /var/tmp/ax7z_src-orig . > $(DIR).patch
	-env LANG=C diff -u /var/tmp/ax7z_src-orig/7z/7zip/UI/Common/OpenArchive.cpp 7z/7zip/UI/Common/OpenArchive.cpp >> $(DIR).patch
	-env LANG=C diff -u /var/tmp/ax7z_src-orig/7z/7zip/UI/Common/LoadCodecs.cpp 7z/7zip/UI/Common/LoadCodecs.cpp >> $(DIR).patch

tag:
	svn copy . https://yak.myhome.cx/repos/source/ax7z/tags/$(DIR)

gtag:
	git svn tag $(DIR)

retag:
	svn remove https://yak.myhome.cx/repos/source/ax7z/tags/$(DIR)
	svn copy . https://yak.myhome.cx/repos/source/ax7z/tags/$(DIR)<commit_msg>Adjust path to adapt to VC11 (ref gh-6).<commit_after>VER = 0.7-457y3b1
DIR = ax7z-$(VER)

.PHONY: release dist build mkpatch tag gtag retag test

release: build dist

dist: mkpatch
	rm -rf $(DIR)
	mkdir -p $(DIR)
	cp -p Release/ax7z.spi ax7z.txt $(DIR)
	(cd $(DIR); zip ../$(DIR).zip *)
	rm -rf $(DIR)
	
build:
	/cygdrive/c/Program\ Files\ \(x86\)/Application/Microsoft\ Visual\ Studio\ 11.0/Common7/IDE/devenv.exe ./00am.sln /Rebuild Release

mkpatch:
	rm -f $(DIR).patch
	-env LANG=C diff -urN -X diff-exclude.txt /var/tmp/ax7z_src-orig . > $(DIR).patch
	-env LANG=C diff -u /var/tmp/ax7z_src-orig/7z/7zip/UI/Common/OpenArchive.cpp 7z/7zip/UI/Common/OpenArchive.cpp >> $(DIR).patch
	-env LANG=C diff -u /var/tmp/ax7z_src-orig/7z/7zip/UI/Common/LoadCodecs.cpp 7z/7zip/UI/Common/LoadCodecs.cpp >> $(DIR).patch

tag:
	svn copy . https://yak.myhome.cx/repos/source/ax7z/tags/$(DIR)

gtag:
	git svn tag $(DIR)

retag:
	svn remove https://yak.myhome.cx/repos/source/ax7z/tags/$(DIR)
	svn copy . https://yak.myhome.cx/repos/source/ax7z/tags/$(DIR)
{'fraction_non_alphanumeric': 0.18385214007782102, 'fraction_numerical': 0.032101167315175094, 'mean_word_length': 3.339662447257384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 6, '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': '428624', 'n_tokens_mistral': 943, 'n_tokens_neox': 901, 'n_words': 182}