SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Being annoyed by sbopkg and too lazy to do all slackbuilds by hand I decided to learn bash and in the process write my own "packager" and so I did. This is my first BASH project and so far I found it to be very nifty (I tend to use this thing almost daily) so I'm throwing it out into the wild, maybe somebody will find it useful.
Calvin can automate slackbuild installation and can process these nice text files for the lazy bunch, the ones I call slackbundles. Basically, a bundle is just a text file with a list of slackbuilds which will be built in that order. I found out that a bundle for mysql-workbench (and stuff alike) might save a couple of those dying nerves.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Couple of things I would change the bash-centric way is to use $(COMMAND) instead of back ticks ( yes I know it's not posix but this IS a bash script! please don't flame me! ), I would also check for uid 0 rather than the name root ( echo $UID ).
You might want to check out the advanced bash scripting guide if you haven' already got a copy and also this is a good site for bash scripts http://bashscripts.org/forum/index.php
Any plans to support the Sbo queue (.sqf) file format? There's already a large collection of those and the differences between your format and theirs are small. It might get people using your script that way...
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Yeah, I'd be too embarrassed to choose that title. Probably go for "LQ 5k Club".
From the LQ FAQ:
After 5000 posts you can choose between Guru, LQ Muse, LQ 5k Club, LQ Sage, LQ Veteran and LQ Addict
@brianL- Haha - LQ Addict sounds very suspect to me and "LQ 5k Club" not much better. Go for Guru - from Wikipedia
A guru (Sanskrit: गुरु) is one who is regarded as having great knowledge, wisdom, and authority in a certain area, and who uses it to guide others (teacher). Other forms of manifestation of this principle can include parents, school teachers, non-human objects (books) and even one's own intellectual discipline, if the aforementioned are in a guidance role.