Skip to content

Package Tool Version Getter

Lucie Hutchins edited this page Mar 22, 2018 · 3 revisions

A script that downloads and stores locally a file containing the tool's current release info. The script runs before the package manager script to update the local flag.

Usage: ./getToolVersion.sh tool_name

  1. cd to the repos root directory
  2. run ./getToolVersion.sh tool_name

What It Does

  1. Create the base directory for this tool if not exists under EXTERNAL_SOFTWARE_BASE
  2. Fetches the current release into from a remote server
     a. For non git repos releases - downloads the current release Readme file (*.txt, *.html, ...) 
        from the downloads site - parses it to extract the latest release number

    b. For git repos releases - clones the repos - extract the latest release number
  1. Sets the local current release number flag