Index: deblist.sh =================================================================== --- deblist.sh (nonexistent) +++ deblist.sh (revision 4327) @@ -0,0 +1,68 @@ +#!/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 ' + |