| 1 |
|
#!/bin/sh |
| 2 |
|
# install - install a program, script, or datafile |
| 3 |
|
|
| 4 |
< |
scriptversion=2009-04-28.21; # UTC |
| 4 |
> |
scriptversion=2010-02-06.18; # UTC |
| 5 |
|
|
| 6 |
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was |
| 7 |
|
# later released in X11R6 (xc/config/util/install.sh) with the |
| 200 |
|
fi |
| 201 |
|
|
| 202 |
|
if test -z "$dir_arg"; then |
| 203 |
< |
trap '(exit $?); exit' 1 2 13 15 |
| 203 |
> |
do_exit='(exit $ret); exit $ret' |
| 204 |
> |
trap "ret=129; $do_exit" 1 |
| 205 |
> |
trap "ret=130; $do_exit" 2 |
| 206 |
> |
trap "ret=141; $do_exit" 13 |
| 207 |
> |
trap "ret=143; $do_exit" 15 |
| 208 |
|
|
| 209 |
|
# Set umask so as not to create temps with too-generous modes. |
| 210 |
|
# However, 'strip' requires both read and write access to temps. |