From 832614680ec2b05db790b2ebd7268234591f220c Mon Sep 17 00:00:00 2001 From: merces Date: Wed, 27 Nov 2024 19:41:20 -0300 Subject: [PATCH] Output only one shebang line --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 30994b8..5d9fec4 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ -SRC = `find src/ -type f -name '*.sh'|LC_ALL=C sort` +SRC = `find src/ -type f -name 'bh_*.sh' | LC_ALL=C sort` OUTFILE = bashacks.sh BASHRCFILE = ~/.profile BASHACKS = `pwd`/$(OUTFILE) all: - >$(OUTFILE) + cat src/internal/bootstrap.sh > $(OUTFILE) for file in $(SRC); do \ - (echo '#!/bin/bash' && cat $$file) >> $(OUTFILE); \ + cat $$file >> $(OUTFILE); \ echo >> $(OUTFILE); \ done tr -d \\r < $(OUTFILE) > $(OUTFILE).tmp