-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
33 lines (28 loc) · 831 Bytes
/
main.go
File metadata and controls
33 lines (28 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package main
import "flag"
type program struct {
baseURL string
versions []string
listFilter string
dirPrefix string
}
var linux = &program{
baseURL: "https://mirrors.edge.kernel.org/pub/linux/kernel",
versions: []string{"v1.1", "v1.2", "v1.3", "v2.0", "v2.2", "v2.3",
"v2.4", "v2.5", "v2.6", "v3.0", "v3.x", "v4.x", "v5.x", "v6.x"},
listFilter: " | grep tar.xz | grep https | grep -v bdflush" +
"| grep -vi changelog | grep -vi modules | grep -v patches " +
"| grep -v v1.1.0 | grep -vi drm | grep -vi dontuse | grep -vi pre " +
"| grep -vi badsig | awk '{print $2}'",
dirPrefix: "linux",
}
func main() {
dataFlag := flag.Bool("data", false,
"generate data (files with graph description inside data/)")
flag.Parse()
if *dataFlag == true {
generateData(linux)
} else {
computeComponents()
}
}