Please provide free language description of what is SBo script
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please provide free language description of what is SBo script
Hi, just as in title. I mean not what purpose serve but how it looks. Components, can we divide script into. It is just what comes to your mind. We do not talk here about bash scripting. Say like cow descripiton: is animal, has four legs, tail, two horns, give milk, beef. Goal is to create scheme like json scheme or xml scheme for proper text human-readable description of a script and then translator (parser) which would produce correct bash script. So starting point is free language description and go into details to finally obtain something which can be directly encoded as scheme.
Nope, it is not a solution I am looking for. Human-readable means that everyone even person with zero knowledge of bash would build its own packages - just provide correct description according to scheme - parse this to bash script with parser. At the end run the script.
Human-readable means that everyone even person with zero knowledge of bash would build its own packages
That is nonsense.
Using slackware requires a lot of knowledge, without [knowing] bash it is simply impossible.
Constructing another format to [be able to] generate bash scripts is just meaningless, most probably you either need to embed real bash code lines or you will be restricted to use only a small part of the language.
If there was another form/syntax you could directly execute that, without converting to bash. But I'm afraid there is no such thing.
All your remarks are interesting but at least we can try to talk about. Starting point is to provide free-language description what sbo script is. Let ask me what is this?
Quote:
CWD=$(pwd)
if [ "$TMP" = "" ]; then
TMP=/tmp
fi
Essentially there is no need to provide description for the first line - it is once for all time fixed. For if construction the simplest possibility is just omit description of temporary directory if I don't care. If I care then say I would print something like that "temporary directory": foobar, now it is up to parser engine to set value of TMP variable to foobar. And so on, so on. So parsing here rather means provide script plus required by script environment.
Constructing another format to [be able to] generate bash scripts is just meaningless, most probably you either need to embed real bash code lines or you will be restricted to use only a small part of the language.
You are missing the point. Not every bash script but only sbo scripts - they have simple structure as scripts. Describe script in you own words - what they are - this what I am asking for.
You should go through the templates. Anyway, I'm sure there's plenty of variation (e.g., different build systems, and not all are compiling from source). But in general you're 1) setting some variables (program name, version, work directory, etc); 2) determining architecture; 3) extracting the source files and setting permissions; 4) setting build flags/compiling; 5) clean up, copying extra files and preparing whatever needs to be in the final installable archive (docs, etc); 6) creating the installable archive.
You should go through the templates. Anyway, I'm sure there's plenty of variation (e.g., different build systems, and not all are compiling from source).
Thanks. Now the point is describe template in own words: what this stands for etc. If there are differences in build systems how they are encoded inside a script? Fixed encoding? Value of parameter. One can put in script descriptio eg. "engin": python etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.