~kaction/config

ref: a53ab2c19d3ef10d552da75d2f83741badf44269 config/aux/myrepos.iu-guest -rwxr-xr-x 701 bytes
a53ab2c1 — Dmitry Bogatov Fix typo in "solemn-email-session" 3 years ago
                                                                                
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
#!/usr/bin/awk -f

function print_block(name, visibility) {
  printf("[devel/iu-guest/%s]\n", name);
  if (visibility == "public") {
    printf("checkout = git clone git://git.iu-guest.info/%s\n", name);
  } else {
    printf("checkout = git clone git@git.iu-guest.info:%s\n", name);
    printf("skip = ! ~/.local/lib/myrepos/check.private-key\n");
  }
  printf("fixups = visibility=%s ", visibility);
  printf(" ~/.local/lib/myrepos/git.iu-guest.fixups %s\n", name);
}

/^repo / {
  if (name) {
    print_block(name, visibility);
  }
  name = $2;
  visibility = "private";
}

/^[ \t]*R[ ]*=[ ]*@all/ { visibility = "public"; }
END {
  print_block(name, visibility);
  printf("# vim: ft=dosini\n");
}