<commit_before>reshifter_version := 0.3.10
git_version := `git rev-parse HEAD`
app_name := reshifter-app
main_dir := `pwd`

.PHONY: gtest gbuild cbuild cpush release init build publish destroy

gtest :
	@echo This will take ca. 3 min to complete so get a cuppa tea for now ...
	go test -short -run Test* ./pkg/discovery
	go test -short -run Test* ./pkg/backup
	go test -short -run Test* ./pkg/restore

gbuild :
	GOOS=linux GOARCH=amd64 go build -ldflags "-X main.releaseVersion=$(reshifter_version)" .
	GOOS=linux GOARCH=amd64 go build -ldflags "-X github.com/mhausenblas/reshifter/rcli/cmd.releaseVersion=$(reshifter_version)" -o ./rcli/rcli-linux rcli/main.go
	go build -ldflags "-X github.com/mhausenblas/reshifter/rcli/cmd.releaseVersion=$(reshifter_version)" -o ./rcli/rcli-macos rcli/main.go

ginstall :
	@GOOS=linux GOARCH=amd64 go install -ldflags "-X main.releaseVersion=$(reshifter_version)" .

cbuild :
	@docker build --build-arg rversion=$(reshifter_version) -t quay.io/mhausenblas/reshifter:$(reshifter_version) .

cpush :
	@docker push quay.io/mhausenblas/reshifter:$(reshifter_version)

crelease : cbuild cpush

clean :
	@rm reshifter

init :
	@oc new-project reshifter
	@oc new-app --strategy=docker --name='$(app_name)' . --output yaml > app.yaml
	@oc apply -f app.yaml

build :
	@oc start-build $(app_name) --from-dir .
	@oc logs -f bc/$(app_name)

publish :
	@oc expose svc/$(app_name)

destroy :
	@rm app.yaml
	@oc delete project reshifter<commit_msg>fixes make for local app build<commit_after>reshifter_version := 0.3.10
git_version := `git rev-parse HEAD`
app_name := reshifter-app
main_dir := `pwd`

.PHONY: gtest gbuild cbuild cpush release init build publish destroy

gtest :
	@echo This will take ca. 3 min to complete so get a cuppa tea for now ...
	go test -short -run Test* ./pkg/discovery
	go test -short -run Test* ./pkg/backup
	go test -short -run Test* ./pkg/restore

gbuild :
	GOOS=linux GOARCH=amd64 go build -ldflags "-X main.releaseVersion=$(reshifter_version)" .
	GOOS=linux GOARCH=amd64 go build -ldflags "-X github.com/mhausenblas/reshifter/rcli/cmd.releaseVersion=$(reshifter_version)" -o ./rcli/rcli-linux rcli/main.go
	go build -ldflags "-X github.com/mhausenblas/reshifter/rcli/cmd.releaseVersion=$(reshifter_version)" -o ./rcli/rcli-macos rcli/main.go

ginstall :
	@go install -ldflags "-X main.releaseVersion=$(reshifter_version)" .

cbuild :
	@docker build --build-arg rversion=$(reshifter_version) -t quay.io/mhausenblas/reshifter:$(reshifter_version) .

cpush :
	@docker push quay.io/mhausenblas/reshifter:$(reshifter_version)

crelease : cbuild cpush

clean :
	@rm reshifter

init :
	@oc new-project reshifter
	@oc new-app --strategy=docker --name='$(app_name)' . --output yaml > app.yaml
	@oc apply -f app.yaml

build :
	@oc start-build $(app_name) --from-dir .
	@oc logs -f bc/$(app_name)

publish :
	@oc expose svc/$(app_name)

destroy :
	@rm app.yaml
	@oc delete project reshifter
{'fraction_non_alphanumeric': 0.13287904599659284, 'fraction_numerical': 0.0068143100511073255, 'mean_word_length': 4.079584775086505, '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': '268806', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1069, 'n_words': 284}