<commit_before>SHELL   = /bin/sh
PREFIX	= /usr/local
SOURCES	= aws-region-name.bash
PROGRAM = aws-region-name

execdir=$(PREFIX)/bin

all: $(PROGRAM)

$(PROGRAM): $(SOURCES)
	rm -rf $@
	cat $(SOURCES) > $@+
	bash -n $@+
	mv $@+ $@
	chmod 0755 $@

install: $(PROGRAM)
	install -d "$(execdir)"
	install -m 0755 $(PROGRAM) "$(execdir)/$(PROGRAM)"

run: all
	./$(PROGRAM)

uninstall:
	rm -f "$(execdir)/$(PROGRAM)"

package: $(PROGRAM)
	mkdir -p ./pkg
	cp $(PROGRAM) ./pkg/$(PROGRAM)-$(shell $(PROGRAM) --version)

publish: package
	git add ./pkg
	git commit -m "[pkg] v$(shell $(PROGRAM) --version)"
	git tag v$(shell $(PROGRAM) --version)
	git push --tags

clean:
	rm -f $(PROGRAM)

.PHONY: run install uninstall clean<commit_msg>Bugfix for proper version generation in makefile<commit_after>SHELL   = /bin/sh
PREFIX	= /usr/local
SOURCES	= aws-region-name.bash
PROGRAM = aws-region-name

execdir=$(PREFIX)/bin

all: $(PROGRAM)

$(PROGRAM): $(SOURCES)
	rm -rf $@
	cat $(SOURCES) > $@+
	bash -n $@+
	mv $@+ $@
	chmod 0755 $@

install: $(PROGRAM)
	install -d "$(execdir)"
	install -m 0755 $(PROGRAM) "$(execdir)/$(PROGRAM)"

run: all
	./$(PROGRAM)

uninstall:
	rm -f "$(execdir)/$(PROGRAM)"

package: $(PROGRAM)
	mkdir -p ./pkg
	cp $(PROGRAM) ./pkg/$(PROGRAM)-$(shell ./$(PROGRAM) --version)

publish: package
	git add ./pkg
	git commit -m "[pkg] v$(shell ./$(PROGRAM) --version)"
	git tag v$(shell ./$(PROGRAM) --version)
	git push --tags

clean:
	rm -f $(PROGRAM)

.PHONY: run install uninstall clean
{'fraction_non_alphanumeric': 0.20574482297929192, 'fraction_numerical': 0.01068804275217101, 'mean_word_length': 3.637770897832817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1927281', 'n_tokens_mistral': 665, 'n_tokens_neox': 589, 'n_words': 161}