File: getReleases.sh

package info (click to toggle)
apbs 3.4.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 199,188 kB
  • sloc: ansic: 284,988; cpp: 60,416; fortran: 44,896; xml: 13,895; sh: 13,838; python: 8,105; yacc: 2,922; makefile: 1,428; f90: 989; objc: 448; lex: 294; awk: 266; sed: 205; java: 134; csh: 79
file content (18 lines) | stat: -rwxr-xr-x 868 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# get the release ids and names
curl -i https://api.github.com/repos/Electrostatics/apbs-pdb2pqr/releases -H "Accept:application/vnd.github.manifold-preview+json"

# "id": 356197,
# "name": "pdb2pqr-linux-bin64-2.0.0.tar.gz",
curl -i https://api.github.com/repos/Electrostatics/apbs-pdb2pqr/releases/assets/356197 -H "Accept: application/vnd.github.manifold-preview+json" | grep download_count

# "id": 356198,
# "name": "pdb2pqr-osx-bin64-2.0.0.tar.gz",
curl -i https://api.github.com/repos/Electrostatics/apbs-pdb2pqr/releases/assets/356198 -H "Accept: application/vnd.github.manifold-preview+json" | grep download_count

# "id": 356199,
# "name": "pdb2pqr-windows-bin64-2.0.0.zip",
curl -i https://api.github.com/repos/Electrostatics/apbs-pdb2pqr/releases/assets/356199 -H "Accept: application/vnd.github.manifold-preview+json" | grep download_count