LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-11-2011, 11:55 AM   #1
abesirovic1
LQ Newbie
 
Registered: Sep 2005
Location: Germany
Distribution: Slackware
Posts: 29
Blog Entries: 1

Rep: Reputation: 6
Calvin, a project in bash


Hi there all you fine people,

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.

I've made a nice page for calvin here: http://www.cprog.de/calvin/

So check it out. Any input is extremely welcome.

Cheers,
Armin.
 
Old 08-11-2011, 01:56 PM   #2
bosth
Member
 
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304

Rep: Reputation: 127Reputation: 127
Your slackbundles sound like the sbo queue files.
 
Old 08-11-2011, 03:31 PM   #3
wigry
Member
 
Registered: Jul 2004
Distribution: slackware
Posts: 225

Rep: Reputation: 53
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

Last edited by wigry; 08-11-2011 at 03:32 PM.
 
Old 08-12-2011, 07:54 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,157

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
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!
 
Old 08-12-2011, 08:10 AM   #5
bosth
Member
 
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304

Rep: Reputation: 127Reputation: 127
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...
 
Old 08-14-2011, 01:15 PM   #6
abesirovic1
LQ Newbie
 
Registered: Sep 2005
Location: Germany
Distribution: Slackware
Posts: 29

Original Poster
Blog Entries: 1

Rep: Reputation: 6
Hi guys, thanks for all the input.

@bosth: Yes, another friend recommended this and I'm working on it. If it works I'll give it a go with some of those and if it works that'll be great.
 
Old 08-14-2011, 02:59 PM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by wigry View Post
<---- 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.
 
Old 08-14-2011, 03:52 PM   #8
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,918

Rep: Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035
Quote:
Originally Posted by brianL View Post
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".
 
Old 08-14-2011, 03:54 PM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
Yeah, I'd be too embarrassed to choose that title. Probably go for "LQ 5k Club".
 
Old 08-14-2011, 04:01 PM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
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
 
Old 08-14-2011, 05:51 PM   #11
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
use $(COMMAND) instead of back ticks ( yes I know it's not posix
Excellent advice, and it *IS* Posix. http://pubs.opengroup.org/onlinepubs...l#tag_02_06_03
 
1 members found this post helpful.
Old 08-14-2011, 09:02 PM   #12
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
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]
Suits you sir - guru brianL - gotta ring to it.
 
Old 08-15-2011, 03:58 AM   #13
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,157

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
Quote:
Originally Posted by 55020 View Post
Excellent advice, and it *IS* Posix. http://pubs.opengroup.org/onlinepubs...l#tag_02_06_03
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
 
  


Reply

Tags
slackbuilds, slackware



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a file to a project via project.vim usernameinuse Linux - Newbie 0 06-22-2010 01:02 PM
[SOLVED] How to store all files related to a c++ project and build in linux. Like project dir sharanlinux Programming 1 04-29-2010 06:52 AM
LXer: The Alexandria Project, Chap. 15: The Alexandria Project Makes the Evening News LXer Syndicated Linux News 0 04-26-2010 10:20 AM
Beginning a big project - Need an Good Project Manager gamehack Programming 3 01-15-2004 11:49 AM
Cannot see Open GL project in KDevelop project wizard SparceMatrix Programming 2 08-07-2002 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration