So, instead of creating all functions in init.sh.
Let init.sh scan the dir modules, that looks like follows:
modules/
modules/debian.source
modules/el6.source
Source these files depending on which target platform you want to build for.
Each file should contain functions that will
f_create_client_package
f_create_server_package
As such, we can do a modular approach to functions for different platforms that this script supports.
With this, change the ./init.sh call, to something like follows:
./init.sh build-client-package debian
or
./init.sh build-client-package el6
So, instead of creating all functions in init.sh. Let init.sh scan the dir modules, that looks like follows: modules/ modules/debian.source modules/el6.source
Source these files depending on which target platform you want to build for.
Each file should contain functions that will f_create_client_package f_create_server_package
As such, we can do a modular approach to functions for different platforms that this script supports.
With this, change the ./init.sh call, to something like follows: ./init.sh build-client-package debian or ./init.sh build-client-package el6