Index: devhelpers/deblist.sh =================================================================== --- devhelpers/deblist.sh (nonexistent) +++ devhelpers/deblist.sh (revision 4700) @@ -0,0 +1,69 @@ +#!/bin/sh + +# Process the debian/control file and produce a html table that explains +# the purpose of each package + +echo ' + + +
+name | internal dependencies | description +' + +awk ' +function out() +{ + if (pkg == "") + return + print " |
---|---|---|
" pkg " | " deps " | " desc
+ pkg=""
+ deps=""
+ desc=""
+ para=0
+}
+
+/^Package:/ {
+ out();
+ pkg=$2
+ para=0
+}
+#Depends: ${misc:Depends}, ${shlibs:Depends}, pcb-rnd-core, pcb-rnd-gtk
+/^Depends:/ {
+ deps=$0
+ sub("Depends: *", "", deps)
+ gsub("[$][{][^}]*[}],?", "", deps)
+}
+
+/^ [.]/ {
+ if (para > 0)
+ desc = desc " " + para++ + next +} + +(para > 0) { + desc = desc " " $0 +} + +END { + out() +} +' + + +echo ' + |
key") + colspan = 2 + for(h in HIDS) { + printf(" | %s", h) + colspan++ + } + print "" + for(n = 0; n < key_combos; n++) { + clr_cnt++ + key = LIST[n] + print " |
---|---|
" cleanup(keystr)
+ for(h in HIDS) {
+ mn = cleanup(MENUNAME[h, key])
+ act = cleanup(ACTION[h, key])
+ if ((act == "") && (mn == ""))
+ act = " "
+ else {
+ gsub(");", "); ", act)
+ if (mn != "")
+ act = "" mn "" " " act + } + print " | ", act
+ if ((h, key) in ERR)
+ print " Error: key prefix collision" + } + last_base = base + } + print " |