~ubuntu-branches/ubuntu/dapper/xfce-mcs-plugins/dapper

« back to all changes in this revision

Viewing changes to install-sh

  • Committer: Bazaar Package Importer
  • Author(s): Simon Huggins
  • Date: 2004-07-19 19:23:31 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040719192331-9c50t7saf1i8thdr
Tags: 4.0.6-1
* New upstream release
* Remove Norbert Tretkowski from Uploaders as requested

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
# install - install a program, script, or datafile
3
3
 
4
 
scriptversion=2004-01-12.10
 
4
scriptversion=2004-02-15.20
5
5
 
6
6
# This originates from X11R5 (mit/util/scripts/install.sh), which was
7
7
# later released in X11R6 (xc/config/util/install.sh) with the
214
214
  # Skip lots of stat calls in the usual case.
215
215
  if test ! -d "$dstdir"; then
216
216
    defaultIFS='
217
 
        '
 
217
         '
218
218
    IFS="${IFS-$defaultIFS}"
219
219
 
220
220
    oIFS=$IFS
228
228
    while test $# -ne 0 ; do
229
229
      pathcomp=$pathcomp$1
230
230
      shift
231
 
      test -d "$pathcomp" || $mkdirprog "$pathcomp"
 
231
      if test ! -d "$pathcomp"; then
 
232
        $mkdirprog "$pathcomp" || lasterr=$?
 
233
        # mkdir can fail with a `File exist' error in case several
 
234
        # install-sh are creating the directory concurrently.  This
 
235
        # is OK.
 
236
        test ! -d "$pathcomp" && { (exit ${lasterr-1}); exit; }
 
237
      fi
232
238
      pathcomp=$pathcomp/
233
239
    done
234
240
  fi
284
290
        $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
285
291
        || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
286
292
        || {
287
 
          echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
288
 
          (exit 1); exit
 
293
          echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
 
294
          (exit 1); exit
289
295
        }
290
296
      else
291
297
        :