I have a fairly large BASH project, which I split into multiple files to make it more readable. As a result, the main file contains many
Now I'm releasing it on GitHub and I'm writing an installer script for it. The problem is that creating subdirectories under binary folders (exactly
/usr/local/sbin) is prohibited by the FHS and I don't want to mess up binary folders with several files like
As a solution, I thought that if the installer script would merge together these files, I'd get a large, monolithic BASH file, which can be put anywhere on the system.
The question is: how can I substitute all
source statements in my main script with the contents of the sourced files?
echo "foo" source included.bash
Resulting monolithic file
echo "foo" echo "bar"