Jump to content

Linux script to download the latest release of a sourceforge project?


dennis123123
 Share

Recommended Posts

I am wondering if anyone can help me. I am looking for help writing a script (bash,perl,whatever) which can determine the latest version of a sourceforge project and download it (then unpack,compile,etc,etc - that part is fine). It seems like a task someone should have done already I would have thought, but searches seem to turn up CVS and SVN type auto update scripts, which I dont think is what I am looking for.

As an example, ill use "sleuthkit" (it is some forensic software I am required to have the latest "proper" release of):

http://heanet.dl.sourceforge.net/sourceforge/sleuthkit/

lists many files and releases. the one I would like the script to download is named sleuthkit-3.0.1.tar.gz as of today. but of course the version number will change periodically so 3.0.2, 3.1, 4.0.1...etc.

Has this already been accomplished in some way or will I need to write a parser for the webpage of each software I want to download?!

Cheers for any help! I posted this at linuxquestions and am yet to get any reply :( But I thought, the hak5 people are keen on coding etc, maybe they can help!

EDIT: actually, the link doesnt take you to a directory listing unless you have previously gone through the sourceforge page :( that makes things even more awkward

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...