[BACK]Return to install.sxxu CVS log [TXT][DIR] Up to [local] / openbsd / sxxu

Annotation of openbsd/sxxu/install.sxxu, Revision 1.4

1.4     ! andrew      1: #!/bin/sh
        !             2: # $Id$
        !             3:
        !             4: # Copyright (c) 2010 Andrew Fresh <andrew@afresh1.com>
        !             5: #
        !             6: # Permission to use, copy, modify, and distribute this software for any
        !             7: # purpose with or without fee is hereby granted, provided that the above
        !             8: # copyright notice and this permission notice appear in all copies.
        !             9: #
        !            10: # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
        !            11: # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
        !            12: # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
        !            13: # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
        !            14: # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
        !            15: # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
        !            16: # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
        !            17: #
        !            18: # based on (and some parts taken from) siteXXtools/install.site
        !            19: # Copyright (c) 2006 Alex Holst <a@mongers.org>
        !            20:
        !            21: echo XXX THIS IS NOT IN ANY WAY SHAPE OR FORM COMPLETE XXX
        !            22: exit
        !            23:
        !            24: user_add_args="-gid =uid" # Could be in .siteXYrc
        !            25:
        !            26: for _f in /var/siteXX/*/siteXXrc; do
        !            27:     . "$_f"
        !            28: done
        !            29:
        !            30: for _f in /var/siteXX/*/*_list; do
        !            31:     local _cmd=`basename "${_f%_list}"`
        !            32:     local _args=`eval echo \\${${_cmd}_args}`
        !            33:     echo Running $_cmd $_args
        !            34:     local _line
        !            35:     while read _line; do
        !            36:         ${_cmd} ${_args} ${_line}
        !            37:     done < $f
        !            38: done
        !            39:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>