This commit is contained in:
Tobias Reisinger 2024-01-08 23:37:31 +01:00
commit d6985ded7e
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
18 changed files with 348 additions and 0 deletions

20
Makefile Normal file
View file

@ -0,0 +1,20 @@
target:
@echo "Enter target directory:"
@read target; \
echo $$target > .target
get-target:
$(eval TARGET := $(shell cat .target))
output-dir:
mkdir -p ./output
generate: get-target output-dir
BASHLY_SOURCE_DIR=$(TARGET) bashly generate
completions: generate
BASHLY_SOURCE_DIR=$(TARGET) bashly add --force completions_script ./output/_$(TARGET)
deploy: completions
cp -f ./output/$(TARGET) ~/.local/bin/
cp -f ./output/_$(TARGET) ~/.config/completionsrc.d/