comparison bin/cdbmake-sv @ 0:2aa53823fb21

new repo
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 06 Jun 2026 10:19:04 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:2aa53823fb21
1 #!/bin/sh
2 # WARNING: This file was auto-generated. Do not edit!
3 awk '
4 {
5 if (split($0,x,"#")) {
6 f = split(x[1],y)
7 if (f >= 2) {
8 if (split(y[2],z,"/") >= 2) {
9 a = "@" z[1] "/" z[2]
10 print "+" length(a) "," length(y[1]) ":" a "->" y[1]
11 for (i = 1;i <= f;i += 1) {
12 if (i != 2) {
13 a = y[i] "/" z[2]
14 print "+" length(a) "," length(z[1]) ":" a "->" z[1]
15 }
16 }
17 }
18 }
19 }
20 }
21 END {
22 print ""
23 }
24 ' | /home/ht/bin/cdbmake "$@"