<commit_before>NAME=lstack
VERSION=$(shell grep ^LSTACK_VERSION lstack.sh | cut -d= -f2)

PKG_DIR=pkg
PKG_NAME=$(NAME)-$(VERSION)
PKG=$(PKG_DIR)/$(PKG_NAME).tar.gz
SIG=$(PKG_DIR)/$(PKG_NAME).asc

PREFIX?=/usr/local
DOC_DIR=$(PREFIX)/share/doc/$(PKG_NAME)

pkg:
	mkdir -p $(PKG_DIR)

$(PKG): pkg
	git archive --output=$(PKG) --prefix=$(PKG_NAME)/ HEAD

deborig: $(PKG)
	mv $(PKG) ../$(NAME)_$(VERSION).orig.tar.gz

$(SIG): $(PKG)
	gpg --sign --detach-sign --armor $(PKG)

build: $(PKG)

clean:
	rm -rf $(PKG_DIR)
	rm -f $(SIG)

debpkg: deborig
	debuild -S && mv ../$(NAME)_* $(HOME)/debian/<commit_msg>Move the source pkg to it's own directory<commit_after>NAME=lstack
VERSION=$(shell grep ^LSTACK_VERSION lstack.sh | cut -d= -f2)

PKG_DIR=pkg
PKG_NAME=$(NAME)-$(VERSION)
PKG=$(PKG_DIR)/$(PKG_NAME).tar.gz
SIG=$(PKG_DIR)/$(PKG_NAME).asc
DEB_TARGET_DIR=$(HOME)/debian/$(NAME)

PREFIX?=/usr/local
DOC_DIR=$(PREFIX)/share/doc/$(PKG_NAME)

pkg:
	mkdir -p $(PKG_DIR)

$(PKG): pkg
	git archive --output=$(PKG) --prefix=$(PKG_NAME)/ HEAD

deborig: $(PKG)
	mv $(PKG) ../$(NAME)_$(VERSION).orig.tar.gz

$(SIG): $(PKG)
	gpg --sign --detach-sign --armor $(PKG)

build: $(PKG)

clean:
	rm -rf $(PKG_DIR)
	rm -f $(SIG)

debpkg: deborig
	mkdir -p $(DEB_TARGET_DIR)
	debuild -S && mv ../$(NAME)_* $(DEB_TARGET_DIR)
{'fraction_non_alphanumeric': 0.2295839753466872, 'fraction_numerical': 0.0015408320493066256, 'mean_word_length': 4.504237288135593, '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': '1098129', 'n_tokens_mistral': 599, 'n_tokens_neox': 577, 'n_words': 116}