mirror of
https://github.com/mjsarfatti/beddu.git
synced 2025-06-26 17:08:01 +02:00
Add upclear utility
This commit is contained in:
parent
76d136f64c
commit
24633a743e
14 changed files with 42 additions and 56 deletions
5
Makefile
5
Makefile
|
@ -27,14 +27,15 @@ demo: build
|
|||
|
||||
$(OUTPUT): $(ALL_SRC_FILES)
|
||||
@mkdir -p $(OUT_DIR)
|
||||
@echo '#! /usr/bin/env bash' > $(OUTPUT)
|
||||
@echo '#!/usr/bin/env bash' > $(OUTPUT)
|
||||
@echo '# shellcheck disable=all' >> $(OUTPUT)
|
||||
@echo '#' >> $(OUTPUT)
|
||||
@echo '# beddu.sh - A lightweight bash framework for interactive scripts and pretty output' >> $(OUTPUT)
|
||||
@echo '# https://github.com/mjsarfatti/beddu' >> $(OUTPUT)
|
||||
@echo '#' >> $(OUTPUT)
|
||||
@echo '# Version: $(shell git describe --tags --dirty)' >> $(OUTPUT)
|
||||
@echo '# Generated on: $(shell date)' >> $(OUTPUT)
|
||||
@# Process each file, stripping (line) comments and empty lines
|
||||
@# Process each file, stripping comments and empty lines
|
||||
@for file in $(ALL_SRC_FILES); do \
|
||||
echo "" >> $(OUTPUT); \
|
||||
grep -v '^\s*#' "$$file" | sed '/^[[:space:]]*$$/d' | sed 's/#[a-zA-Z0-9 ]*$$//' >> $(OUTPUT); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue