[Slackbuilds-users] [ANN]: sbo-dev-helper project

Robby Workman rworkman at slackbuilds.org
Thu Dec 17 04:43:57 UTC 2009


On Thu, 17 Dec 2009 12:36:47 +0800
Grissiom <chaos.proton at gmail.com> wrote:

> On Thu, Dec 17, 2009 at 7:09 AM, Niels Horn <niels.horn at gmail.com>
> wrote:
> 
> > Grissiom,
> >
> > 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
> > $SBO_TEMPLATES/template.SlackBuild.new
> >
> > -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
> > $SBO_TEMPLATES/template.SlackBuild.new"
> > +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
> > $SBO_TEMPLATES/template.SlackBuild.new"
> >      exit 1
> >  else
> > -    rm templates/template.SlackBuild.new
> > +    rm $SBO_TEMPLATES/template.SlackBuild.new
> >  fi
> >
> >
> Oops, I forgot to change them.... Thanks for catching it. I will fix
> it when my slackware box can get online...
> 
> For shell, I use zsh as my primary shell... Thanks for testing it in
> other environments. Will `echo -e "\t..."` be ok?


Use printf instead if you need portability.

-RW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20091216/2dc264f5/attachment.asc>


More information about the SlackBuilds-users mailing list