URI:
       tmkfile.9 - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       tmkfile.9 (1955B)
       ---
            1 <$PLAN9/src/mkhdr
            2 
            3 LIBS=common
            4 #PROGS=smtp alias fs ned misc q send scanmail pop3 ml marshal vf filterkit unesc
            5 PROGS=smtp alias fs q send marshal vf 
            6 #libs must be made first
            7 DIRS=$LIBS $PROGS
            8 
            9 UPDATE=\
           10         mkfile\
           11         /sys/man/1/mail\
           12 
           13 all:V:
           14         for i in $DIRS
           15         do
           16                 (cd $i; mk $stem)
           17         done
           18 
           19 clean:V:
           20         for (i in $DIRS) @{
           21                 cd $i
           22                 mk clean
           23         }
           24 
           25 nuke:V:
           26         for (i in $LIBS) @{
           27                 cd $i
           28                 mk nuke
           29         }
           30         for (i in $PROGS) @{
           31                 cd $i
           32                 mk clean
           33         }
           34 
           35 install:V:
           36         for (i in $DIRS) @{
           37                 cd $i
           38                 mk install
           39         }
           40 
           41 installall:V:
           42         for (i in $DIRS) @{
           43                 cd $i
           44                 mk installall
           45         }
           46         for (i in $DIRS) @{
           47                 cd $i
           48                 mk clean
           49         }
           50 
           51 safeinstallall:V:
           52         for (i in $LIBS) @{
           53                 cd $i
           54                 mk installall
           55         }
           56         for (i in $PROGS) @{
           57                 cd $i
           58                 mk safeinstallall
           59         }
           60         for (i in $DIRS) @{
           61                 cd $i
           62                 mk clean
           63         }
           64 
           65 update:V:
           66         update $UPDATEFLAGS $UPDATE
           67         for (i in $DIRS) @{
           68                 cd $i
           69                 echo '>>>>>>>>>>' `{pwd} '<<<<<<<<<<<'
           70                 mk $MKFLAGS 'UPDATEFLAGS='$"UPDATEFLAGS update
           71         }
           72 
           73 #
           74 # setup the mail directories.  this should be done by the administrator since
           75 # he/she will own everything.  the following files must be altered to reflect
           76 # local preference.
           77 #
           78 # /mail/lib/namefiles        - remove alias files you don't use, insert ones you do.
           79 # /mail/lib/remotemail        - change '-g research.research.bell-labs.com' to your own mail
           80 #                          gateway.  if you have none, remove it.
           81 #                        - change '-h plan9.bell-labs.com' to a name you would like
           82 #                          this host to be known as.  if you don't care, take it
           83 #                          out and it will use the name in /env/site.
           84 # /mail/lib/rewrite        - change the line that contains 'helix' to include names,
           85 #                          other than the contents of /env/site, that your system
           86 #                          answers to.  this is a hack and will be fixed.
           87 #
           88 setup:V:
           89         mkdir /mail
           90         chmod 775 /mail
           91         mkdir /mail/lib
           92         chmod 775 /mail/lib
           93         mkdir /mail/queue
           94         mkdir /mail/box
           95         mkdir /mail/tmp
           96         chmod 777 /mail/queue /mail/box /mail/tmp
           97         mkdir /mail/ml
           98         chmod 775 /mail/ml
           99         cp misc/rewrite misc/qmail misc/remotemail misc/namefiles /mail/lib