This is the ubiqx binary tree and linked list library.
[Samba.git] / packaging / Solaris / pkg-specs / mkprototype
blob5ca0746beea0688ab750e0ad23155dbcd09fab9f
1 #!/bin/sh
2 # this creates prototype files
3 pkgproto * > prototype
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
11 change)"
12 print "#" }
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 }
24 / src[ \/]/ { next }
25 /^[dfv]/ { $5 = "bin"
26 $6 = "bin"
27 print
28 next }
29 { print }' prototype >/tmp/prototype.$$
30 mv /tmp/prototype.$$ prototype