~ubuntu-branches/ubuntu/trusty/enigma/trusty-proposed

« back to all changes in this revision

Viewing changes to install-sh

  • Committer: Package Import Robot
  • Author(s): Erich Schubert
  • Date: 2013-04-06 14:54:02 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130406145402-jgjrtk7hac8gtvza
Tags: 1.20-dfsg.1-1
* New upstream release (Closes: #704595)
  (Repacked: dropped zipios++ source and main menu music)
* Update watch file, sf.net again.
* Fix documentation links (Closes: #653508)
* Conflict with enigma-level-previews to encourage deinstallation
  (Pregenerated level previews were only used with version 1.01)
* Use dh7 for building instead of CDBS
* Update to policy 3.9.4.0 (no changes)
* Register documentation with doc-base

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=2011-01-19.21; # UTC
 
4
scriptversion=2009-04-28.21; # UTC
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
156
156
    -s) stripcmd=$stripprog;;
157
157
 
158
158
    -t) dst_arg=$2
159
 
        # Protect names problematic for `test' and other utilities.
160
 
        case $dst_arg in
161
 
          -* | [=\(\)!]) dst_arg=./$dst_arg;;
162
 
        esac
163
159
        shift;;
164
160
 
165
161
    -T) no_target_directory=true;;
190
186
    fi
191
187
    shift # arg
192
188
    dst_arg=$arg
193
 
    # Protect names problematic for `test' and other utilities.
194
 
    case $dst_arg in
195
 
      -* | [=\(\)!]) dst_arg=./$dst_arg;;
196
 
    esac
197
189
  done
198
190
fi
199
191
 
208
200
fi
209
201
 
210
202
if test -z "$dir_arg"; then
211
 
  do_exit='(exit $ret); exit $ret'
212
 
  trap "ret=129; $do_exit" 1
213
 
  trap "ret=130; $do_exit" 2
214
 
  trap "ret=141; $do_exit" 13
215
 
  trap "ret=143; $do_exit" 15
 
203
  trap '(exit $?); exit' 1 2 13 15
216
204
 
217
205
  # Set umask so as not to create temps with too-generous modes.
218
206
  # However, 'strip' requires both read and write access to temps.
240
228
 
241
229
for src
242
230
do
243
 
  # Protect names problematic for `test' and other utilities.
 
231
  # Protect names starting with `-'.
244
232
  case $src in
245
 
    -* | [=\(\)!]) src=./$src;;
 
233
    -*) src=./$src;;
246
234
  esac
247
235
 
248
236
  if test -n "$dir_arg"; then
264
252
      echo "$0: no destination specified." >&2
265
253
      exit 1
266
254
    fi
 
255
 
267
256
    dst=$dst_arg
 
257
    # Protect names starting with `-'.
 
258
    case $dst in
 
259
      -*) dst=./$dst;;
 
260
    esac
268
261
 
269
262
    # If destination is a directory, append the input filename; won't work
270
263
    # if double slashes aren't ignored.
392
385
 
393
386
      case $dstdir in
394
387
        /*) prefix='/';;
395
 
        [-=\(\)!]*) prefix='./';;
 
388
        -*) prefix='./';;
396
389
        *)  prefix='';;
397
390
      esac
398
391
 
410
403
 
411
404
      for d
412
405
      do
413
 
        test X"$d" = X && continue
 
406
        test -z "$d" && continue
414
407
 
415
408
        prefix=$prefix$d
416
409
        if test -d "$prefix"; then