~ubuntu-branches/ubuntu/jaunty/plotutils/jaunty

« back to all changes in this revision

Viewing changes to libxmi/install-sh

  • Committer: Bazaar Package Importer
  • Author(s): Floris Bruynooghe
  • Date: 2007-05-10 19:48:54 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070510194854-mrr3lgwzpxd8hovo
Tags: 2.5-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
3
# install - install a program, script, or datafile
4
 
# This comes from X11R5 (mit/util/scripts/install.sh).
5
 
#
6
 
# Copyright 1991 by the Massachusetts Institute of Technology
7
 
#
8
 
# Permission to use, copy, modify, distribute, and sell this software and its
9
 
# documentation for any purpose is hereby granted without fee, provided that
10
 
# the above copyright notice appear in all copies and that both that
11
 
# copyright notice and this permission notice appear in supporting
12
 
# documentation, and that the name of M.I.T. not be used in advertising or
13
 
# publicity pertaining to distribution of the software without specific,
14
 
# written prior permission.  M.I.T. makes no representations about the
15
 
# suitability of this software for any purpose.  It is provided "as is"
16
 
# without express or implied warranty.
 
4
#
 
5
# This originates from X11R5 (mit/util/scripts/install.sh), which was
 
6
# later released in X11R6 (xc/config/util/install.sh) with the
 
7
# following copyright and license.
 
8
#
 
9
# Copyright (C) 1994 X Consortium
 
10
#
 
11
# Permission is hereby granted, free of charge, to any person obtaining a copy
 
12
# of this software and associated documentation files (the "Software"), to
 
13
# deal in the Software without restriction, including without limitation the
 
14
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 
15
# sell copies of the Software, and to permit persons to whom the Software is
 
16
# furnished to do so, subject to the following conditions:
 
17
#
 
18
# The above copyright notice and this permission notice shall be included in
 
19
# all copies or substantial portions of the Software.
 
20
#
 
21
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
22
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
23
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
24
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 
25
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
 
26
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
27
#
 
28
# Except as contained in this notice, the name of the X Consortium shall not
 
29
# be used in advertising or otherwise to promote the sale, use or other deal-
 
30
# ings in this Software without prior written authorization from the X Consor-
 
31
# tium.
 
32
#
 
33
#
 
34
# FSF changes to this file are in the public domain.
17
35
#
18
36
# Calling this script install-sh is preferred over install.sh, to prevent
19
37
# `make' implicit rules from creating a file called install from it
118
136
        
119
137
        if [ -d $dst ]; then
120
138
                instcmd=:
 
139
                chmodcmd=""
121
140
        else
122
141
                instcmd=mkdir
123
142
        fi
162
181
 
163
182
# Skip lots of stat calls in the usual case.
164
183
if [ ! -d "$dstdir" ]; then
165
 
defaultIFS='    
 
184
defaultIFS='    
166
185
'
167
186
IFS="${IFS-${defaultIFS}}"
168
187