From 3f9daf7fe6e0bf43d6f6c7e039fc0bdc1d556dd9 Mon Sep 17 00:00:00 2001 From: Armin Briegel <1933192+scriptingosx@users.noreply.github.com> Date: Thu, 24 Jun 2021 11:50:29 +0200 Subject: [PATCH] changed file extension for fragments to sh --- utils/assemble.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/assemble.sh b/utils/assemble.sh index 6cb8530..3cf49c2 100755 --- a/utils/assemble.sh +++ b/utils/assemble.sh @@ -42,7 +42,7 @@ labels_dir="$fragments_dir/labels" # add default labels_dir to label_paths label_paths+=$labels_dir -fragment_files=( header.txt version.txt functions.txt arguments.txt main.txt ) +fragment_files=( header.sh version.sh functions.sh arguments.sh main.sh ) # check if fragment files exist (and are readable) for fragment in $fragment_files; do @@ -61,32 +61,32 @@ fi mkdir -p $build_dir # add the header -cat "$fragments_dir/header.txt" > $destination_file +cat "$fragments_dir/header.sh" > $destination_file # read the version.txt -version=$(cat "$fragments_dir/version.txt") +version=$(cat "$fragments_dir/version.sh") versiondate=$(date +%F) echo "VERSION=\"$version\"" >> $destination_file echo "VERSIONDATE=\"$versiondate\"" >> $destination_file echo >> $destination_file # add the functions.txt -cat "$fragments_dir/functions.txt" >> $destination_file +cat "$fragments_dir/functions.sh" >> $destination_file # add the arguments.txt -cat "$fragments_dir/arguments.txt" >> $destination_file +cat "$fragments_dir/arguments.sh" >> $destination_file # all the labels for lpath in $label_paths; do if [[ -d $lpath ]]; then - cat "$lpath"/*.txt >> $destination_file + cat "$lpath"/*.sh >> $destination_file else echo "$lpath not a directory, skipping..." fi done # add the footer -cat "$fragments_dir/main.txt" >> $destination_file +cat "$fragments_dir/main.sh" >> $destination_file # set the executable bit chmod +x $destination_file