Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] version-check script

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Marc Greene <marcg AT phreaker.net>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] version-check script
  • Date: Thu, 1 May 2003 12:55:32 -0700 (PDT)

On Mon, 28 Apr 2003, M.L. wrote:

> On Sun, 27 Apr 2003 20:37:23 -0700, Andrew wrote
> > not sure if you know this or not, but i think dufflebunk has a similiar
> > script, maybe you could look at it also...
> >
> Hi,
>
> I guess the duff'script is linked in the wiki (and certainly on his home
> page).
> Then I have one on http://perso.compaqnet.fr/linuxxunil with filtering &
> email
> reports (to make it a cron job)

Well, our scripts do different things, yours (M.L.'s) basically checks
and notifies you if there are changes to urls (which may or may not be
software updates). Mine connects to the servers, displays any versions
of the software available along with our devel grimoire version, and with
a little interaction, generates a relatively complete list of new
versions for any spells in the section that have one available. I guess
the idea is to minimize the number of urls that must be entered into a
web browser and checked on manually.

I couldn't get dufflebunk's updateCheck.sh script to work at all, perhaps
it needs updating:

# ./updateCheck.sh mozilla
./updateCheck.sh: line 84: /mozilla: No such file or directory
basename: too few arguments
Try `basename --help' for more information.
Could not detect version in mozilla. Skipping.

Plus in that script there is this:

#Syntax:
#update_check [spell] [spell] ...
#
#Problems:
# - Only looks at SOURCE_URL[0]
# - Does not understand separate directories per version
http://blah.com/VERSION/foo-VERSION.tar.bz2, it will not change the
VERSION directory
# - and the url must lead either to a directory index or an html file
with a link to the new version.
# - doesn't understand non-numerical versions
# - I think that's it

My script has most of these limitations as well, however it does work
with non-numerical versions.

Marc




Archive powered by MHonArc 2.6.24.

Top of Page