[Slackbuilds-users] [ANN]: sbo-dev-helper project
niels.horn at gmail.com
Wed Dec 16 23:09:05 UTC 2009
On Wed, Dec 16, 2009 at 3:26 PM, Niels Horn <niels.horn at gmail.com> wrote:
> On Wed, Dec 16, 2009 at 2:56 PM, Grissiom <chaos.proton at gmail.com> wrote:
>> Hello everyone,
>> I did a little project named sbo-dev-helper which contain helper scripts that ease your dev progress for SBo.
>> Project hosted in: http://gitorious.org/sbo-dev-helper
>> It have 3 scripts by now:
>> A script to establish a new SlackBuild working directory.
>> A script that create a tarball that you intent to submit to SBo.
>> A script that get template updates from SBo and notify you if there is any.
>> Hope they could be helpful.
>> Any suggestions or patches are welcome ;)
> Sounds interesting. I'll take a look when I'm back home.
> I can't check the scripts here at work (firewall blocks about everything), but I already have some suggestions (if you haven't thought of them already):
> - new_pkg could check if there are any *.tar.?z* files in the directory and warn (if the maintainer forgot to delete the source)
> - new_pkg could skip *~ files (old backups)
> - new_slackbuild could already pre-format the slack-desc file (put the name of the package with the ":")
> I started something similar for myself, but it is way too messy to offer the public :)
The update_sbo_tpl does not use the SBO_TEMPLATES variable all the
way, and echo "\t" does not work correctly in bash.
I patched the file like this:
--- sbo-dev-helper/usr/bin/update_sbo_tpl 2009-12-16 21:03:45.000000000 -0200
+++ /usr/bin/update_sbo_tpl 2009-12-16 21:01:56.000000000 -0200
@@ -7,12 +7,12 @@
wget http://www.slackbuilds.org/template.SlackBuild -O
-if [ "$(cat templates/template.SlackBuild | md5sum -)" \
- != "$(cat templates/template.SlackBuild.new | md5sum -)" ]; then
- echo "\ttemplate.SlackBuild have changed!!!"
- echo "\tConsider update your SlackBuilds!"
- echo "\tNew template file restored as
+if [ "$(cat $SBO_TEMPLATES/template.SlackBuild | md5sum -)" \
+ != "$(cat $SBO_TEMPLATES/template.SlackBuild.new | md5sum -)" ]; then
+ printf "\ttemplate.SlackBuild have changed!!!"
+ printf "\tConsider update your SlackBuilds!"
+ printf "\tNew template file restored as
- rm templates/template.SlackBuild.new
+ rm $SBO_TEMPLATES/template.SlackBuild.new
Off to check the other scripts now...
More information about the SlackBuilds-users