File: packaging.awk

package info (click to toggle)
zplug 2.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,068 kB
  • sloc: sh: 1,504; awk: 235; makefile: 26
file content (17 lines) | stat: -rw-r--r-- 179 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env awk

BEGIN {
    FS = "/";
}

{
    if ($2 == pkg)
        list[i++] = $0;
}

END {
    if (length(list) == 1)
        print list[0];
    else
        print pkg;
}