3 # [This file was lifted from an X distribution. There was no explicit
4 # copyright in the file, but the following text was associated with it.
5 # should anyone from the X Consortium wish to alter the following
6 # text. Please email <morgan@parc.power.net> Thanks. ]
8 # --------------------------
9 # The X Consortium maintains and distributes the X Window System and
10 # related software and documentation in coordinated releases. A release
11 # consists of two distinct parts:
13 # 1) Specifications and Sample implementations of X Consortium
16 # 2) software and documentation contributed by the general X Consortium
19 # The timing and contents of a release are determined by the Consortium
20 # staff based on the needs and desires of the Members and the advice of
21 # the Advisory Board, tempered by the resource constraints of the
24 # Members have access to all X Consortium produced software and
25 # documentation prior to release to the public. Each Member can receive
26 # pre-releases and public releases at no charge. In addition, Members
27 # have access to software and documentation while it is under
28 # development, and can periodically request snapshots of the development
29 # system at no charge.
31 # The X Consortium also maintains an electronic mail system for
32 # reporting problems with X Consortium produced software and
33 # documentation. Members have access to all bug reports, as well as all
34 # software patches as they are incrementally developed by the Consortium
35 # staff between releases.
37 # In general, all materials included in X Consortium releases are
38 # copyrighted and contain permission notices granting unrestricted use,
39 # sales and redistribution rights provided that the copyrights and the
40 # permission notices are left intact. All materials are provided "as
41 # is," without express or implied warranty.
42 # --------------------------
44 # This accepts bsd-style install arguments and makes the appropriate calls
45 # to the System V install.
55 while [ x$1 != x ]; do
60 -m) flags="$flags $1 $2 "
66 -o) flags="$flags -u $2 "
72 -g) flags="$flags $1 $2 "
98 flags="$flags -u root"
106 echo "$0: no input file specified"
112 echo "$0: no destination specified"
117 # set up some variable to be used later
122 # if the destination isn't a directory we'll need to copy it first
126 dstbase=`basename $dst`
127 cp $src /tmp/$dstbase
128 rmcmd="rm -f /tmp/$dstbase"
131 dst="`echo $dst | sed 's,^\(.*\)/.*$,\1,'`"
139 # If the src file has a directory, copy it to /tmp to make install happy
141 srcbase=`basename $src`
143 if [ "$src" != "$srcbase" -a "$src" != "./$srcbase" ]
145 cp $src /tmp/$srcbase
148 rmcmd="rm -f /tmp/$srcbase"
151 # do the actual install
153 if [ -f /usr/sbin/install ]
155 installcmd=/usr/sbin/install
156 elif [ -f /etc/install ]
158 installcmd=/etc/install
163 # This rm is commented out because some people want to be able to
164 # install through symbolic links. Uncomment it if it offends you.
166 (cd $srcdir ; $installcmd -f $dst $flags $src)
168 if [ x$dostrip = xstrip ]