<commit_before>REVISION=${shell svn info . | grep '^Revision: ' | sed -e 's/[^0-9]//g'}

all:

install:
	mkdir -v -p "/usr/local/stow/udploggertools-r${REVISION}/sbin"
	mkdir -v -p "/usr/local/stow/udploggertools-r${REVISION}/lib/python2.5/site-packages"
	cp *.py "/usr/local/stow/udploggertools-r${REVISION}/sbin"
	cp -r Nexopia "/usr/local/stow/udploggertools-r${REVISION}/lib/python2.5/site-packages"

clean:
	find . -iname '*.pyc' -delete

pristine: realclean

proper: realclean

realclean: clean
	rm -f udploggertools-r*.tar.gz

source-package:
	mkdir "udploggertools-r${REVISION}"
	cp *.py Makefile "udploggertools-r${REVISION}"
	rsync --recursive --exclude=.svn Nexopia "udploggertools-r${REVISION}"
	perl -i -p -e "s/^REVISION=.*/REVISION=${REVISION}/" "udploggertools-r${REVISION}/Makefile"
	perl -i -p -e "s/Revision: \d+ /Revision: ${REVISION} /" "udploggertools-r${REVISION}/udploggergrep.py"
	perl -i -p -e "s/Revision: \d+ /Revision: ${REVISION} /" "udploggertools-r${REVISION}/udploggerstats.py"
	tar cfz "udploggertools-r${REVISION}.tar.gz" "udploggertools-r${REVISION}"
	rm -rf "udploggertools-r${REVISION}"<commit_msg>* Exclude *.pyc files from source-package. * Do revision number replacement on *.py.<commit_after>REVISION=${shell svn info . | grep '^Revision: ' | sed -e 's/[^0-9]//g'}

all:

install:
	mkdir -v -p "/usr/local/stow/udploggertools-r${REVISION}/sbin"
	mkdir -v -p "/usr/local/stow/udploggertools-r${REVISION}/lib/python2.5/site-packages"
	cp *.py "/usr/local/stow/udploggertools-r${REVISION}/sbin"
	cp -r Nexopia "/usr/local/stow/udploggertools-r${REVISION}/lib/python2.5/site-packages"

clean:
	find . -iname '*.pyc' -delete

pristine: realclean

proper: realclean

realclean: clean
	rm -f udploggertools-r*.tar.gz

source-package:
	mkdir "udploggertools-r${REVISION}"
	cp *.py Makefile "udploggertools-r${REVISION}"
	rsync --recursive --exclude='*.pyc' --exclude=.svn Nexopia "udploggertools-r${REVISION}"
	perl -i -p -e "s/^REVISION=.*/REVISION=${REVISION}/" "udploggertools-r${REVISION}/Makefile" 
	perl -i -p -e "s/Revision: \d+ /Revision: ${REVISION} /" "udploggertools-r${REVISION}/"*.py
	tar cfz "udploggertools-r${REVISION}.tar.gz" "udploggertools-r${REVISION}"
	rm -rf "udploggertools-r${REVISION}"
{'fraction_non_alphanumeric': 0.1925133689839572, 'fraction_numerical': 0.0053475935828877, 'mean_word_length': 4.4227053140096615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6257565', 'n_tokens_mistral': 1016, 'n_tokens_neox': 966, 'n_words': 166}