<commit_before>#
# Makefile for aims2
#
# Builds binary packages for distribution
#

BRANCH=master
RELEASE=latest
TMPDIR = tmp
CLEAN=true

deb:
	if [ -d $(TMPDIR) ]; then rm -r $(TMPDIR); fi
	mkdir -p $(TMPDIR)/_work
	git archive --format=tar $(BRANCH) | ( cd $(TMPDIR)/_work && tar xf - )
	chown -R root:root $(TMPDIR)/*
	chmod -R u=rwX,g=rX,o=rX $(TMPDIR)/*
	mkdir -p $(TMPDIR)/usr/sbin $(TMPDIR)/usr/share/aims $(TMPDIR)/etc/aims $(TMPDIR)/usr/lib/perl5; \
	mv $(TMPDIR)/_work/bin/* $(TMPDIR)/usr/sbin/; \
#	mv $(TMPDIR)/_work/etc/* $(TMPDIR)/etc/aims/; \
	mv $(TMPDIR)/_work/lib/* $(TMPDIR)/usr/lib/perl5/; \
	mv $(TMPDIR)/_work/docs $(TMPDIR)/usr/share/aims/
	mv $(TMPDIR)/_work/man $(TMPDIR)/usr/share/
	rm -r $(TMPDIR)/_work
	cp -r build/meta/deb/* $(TMPDIR)/
	cat $(TMPDIR)/DEBIAN/control | sed s/\<ver\>/$(RELEASE)/ > $(TMPDIR)/DEBIAN/control.new
	mv $(TMPDIR)/DEBIAN/control.new $(TMPDIR)/DEBIAN/control
	( cd $(TMPDIR) && find . ! -path "./DEBIAN/*" ! -name DEBIAN -type f -print0 | xargs -0 md5sum >> DEBIAN/md5sums )
	dpkg-deb -b $(TMPDIR) aims2_$(RELEASE)_all.deb
	if [ "$(CLEAN)" = "true" ]; then rm -rf $(TMPDIR); fi

all: deb<commit_msg>Makefile now deletes the markdown man pages<commit_after>#
# Makefile for aims2
#
# Builds binary packages for distribution
#

BRANCH=master
RELEASE=latest
TMPDIR = tmp
CLEAN=true

deb:
	if [ -d $(TMPDIR) ]; then rm -r $(TMPDIR); fi
	mkdir -p $(TMPDIR)/_work
	git archive --format=tar $(BRANCH) | ( cd $(TMPDIR)/_work && tar xf - )
	chown -R root:root $(TMPDIR)/*
	chmod -R u=rwX,g=rX,o=rX $(TMPDIR)/*
	mkdir -p $(TMPDIR)/usr/sbin $(TMPDIR)/usr/share/aims $(TMPDIR)/etc/aims $(TMPDIR)/usr/lib/perl5; \
	mv $(TMPDIR)/_work/bin/* $(TMPDIR)/usr/sbin/; \
#	mv $(TMPDIR)/_work/etc/* $(TMPDIR)/etc/aims/; \
	mv $(TMPDIR)/_work/lib/* $(TMPDIR)/usr/lib/perl5/; \
	mv $(TMPDIR)/_work/docs $(TMPDIR)/usr/share/aims/
	mv $(TMPDIR)/_work/man $(TMPDIR)/usr/share/
	find $(TMPDIR)/usr/share -name "*.md" -delete
	rm -r $(TMPDIR)/_work
	cp -r build/meta/deb/* $(TMPDIR)/
	cat $(TMPDIR)/DEBIAN/control | sed s/\<ver\>/$(RELEASE)/ > $(TMPDIR)/DEBIAN/control.new
	mv $(TMPDIR)/DEBIAN/control.new $(TMPDIR)/DEBIAN/control
	( cd $(TMPDIR) && find . ! -path "./DEBIAN/*" ! -name DEBIAN -type f -print0 | xargs -0 md5sum >> DEBIAN/md5sums )
	dpkg-deb -b $(TMPDIR) aims2_$(RELEASE)_all.deb
	if [ "$(CLEAN)" = "true" ]; then rm -rf $(TMPDIR); fi

all: deb
{'fraction_non_alphanumeric': 0.22096436058700208, 'fraction_numerical': 0.0067085953878406705, 'mean_word_length': 3.642023346303502, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1899243', 'n_tokens_mistral': 1030, 'n_tokens_neox': 1066, 'n_words': 222}