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.
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.
Even if you managed to reimplement the SBO queue files, the main point is, you learned to program BASH and thats a big accomplishment. Congratulations!
<---- Does this make sense? Registered 2004, 16 posts, LQ Newbie
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,157
Rep:
Not bad!
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
Good work!
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...
<---- Does this make sense? Registered 2004, 16 posts, LQ Newbie
Your title depends on number of posts, not how long you've been a member, or level of knowledge. If it depended on level of knowledge, I wouldn't even qualify as a newbie.
Your title depends on number of posts, not how long you've been a member, or level of knowledge. If it depended on level of knowledge, I wouldn't even qualify as a newbie.
Speaking of which... You're only 15 away from "Guru".
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Quote:
Yeah, I'd be too embarrassed to choose that title. Probably go for "LQ 5k Club".
Quote:
From the LQ FAQ:
Quote:
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
Quote:
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.[1]
Thanks for that, I've never checked but I have had some complaints when posting ( not just on this board ) that the $() form is bash only and not posix , now I know better!Grrr
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.