2 # this creates prototype files
4 nawk 'BEGIN { print "# d directory"
5 print "# e a file to be edited upon installation or removal"
6 print "# f a standard executable or data file"
7 print "# i installation script or information file"
8 print "# l linked file"
9 print "# s symbolic link"
10 print "# v volatile file (one whose contents are expected to
13 / pkginfo / { print "i pkginfo" ; next }
14 / postinstall / { print "i postinstall" ; next }
15 / postremove / { print "i postremove" ; next }
16 /d none usr / { print "d none usr ? ? ?" ; next }
17 /d none usr\/local / { print "d none usr/local ? ? ?" ; next }
18 /d none etc / { print "d none etc ? ? ?" ; next }
19 /f none etc\// { $1 = "v" }
20 /d none opt / { print "d none opt ? ? ?" ; next }
21 /d none var / { print "d none var ? ? ?" ; next }
22 /none prototype / { next }
23 /none mkprototype / { next }
29 { print }' prototype >/tmp/prototype.$$
30 mv /tmp/prototype.$$ prototype