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

Grissiom chaos.proton at gmail.com
Thu Dec 17 04:36:47 UTC 2009


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?

-- 
Cheers,
Grissiom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20091217/a3b6bed0/attachment-0001.htm>


More information about the SlackBuilds-users mailing list