tdenniston/bish

Can bish use raw shell include files?

Icenowy opened this issue · 2 comments

I want to use bish to partly rewrite https://github.com/AOSC-Dev/autobuild3 (The build tool of my Linux distro)

However, autobuild3 is modular and has many written bash routines.

How can I use them in bish?

PS: I don't like the generating style of bish -- It's not modular at all.

Can you explain a little bit more what you are trying to do? Do you want to execute external bash scripts, or call functions from a bish script that are defined in an external bash script?

The code generation strategy I'm using for modular bish programs was deliberate: everything is statically linked so that a multi-part bish program can be generated and distributed as a single bash script. However, I'm open to change, if you can give a good argument why it should be different :-).

autobuild3 is a set of scripts that we use to build software packages in our linux distribution. It is quite a modular system (find -type f . | wc -l says so) and contains a lot of source or . commands. Some parts of autobuild are also used in other scripts and that's why Icenowy wants to include compile-as-library and raw source stuffs.