Decided to publish my pre-alpha bashcfg library so here it is with a test program.
I use this to update multiple machines automatically.
What does the library do?
The libbashcfg.a library creates or parses a bash script loaded via a file or general stream
and creates an interface to manipulate the variables.
What does the application do?
This app allows you to manipulate bash variables by using actions.
Create, Append, Remove, Clear, Erase; these actions work differently depending
on the type of bash variable.
Example:
bashcfg /etc/make.conf +USE=' kde' -USE=gnome
This example adds ‘kde‘ and removes ‘gnome‘ from the USE variable in the make.conf on Gentoo systems
bashcfg /etc/conf.d/net aconfig_eth0='()' +config_eth0='"dhcp"'
This example creates an array net config variable and adds ‘dhcp’ also usefull on Gentoo systems.
June 3rd, 2007 at 3:05 am
This will be really handy in creating PKGBUILDs =]