Skip to content

Instantly share code, notes, and snippets.

@jhoblitt
Created July 9, 2019 23:43
Show Gist options
  • Save jhoblitt/dd3d84ecc0a334224734a413cd0c900d to your computer and use it in GitHub Desktop.
Save jhoblitt/dd3d84ecc0a334224734a413cd0c900d to your computer and use it in GitHub Desktop.
download eups manifest file and strip it down to just the package name and git sha1
strip_manifest() {
local manifest_id=${1?manifest id is required}
local base_url='https://raw.githubusercontent.com/lsst/versiondb/master/manifests'
curl -sSL "${base_url}/${manifest_id}.txt" \
| awk '{ print $1 " " $2 }' \
| sort > "${manifest_id}-sha1.txt"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment