| [206] | 1 | #! /bin/sh
|
|---|
| 2 | #
|
|---|
| 3 | # install - install a program, script, or datafile
|
|---|
| 4 | # This comes from X11R5.
|
|---|
| 5 | #
|
|---|
| 6 | # Calling this script install-sh is preferred over install.sh, to prevent
|
|---|
| 7 | # `make' implicit rules from creating a file called install from it
|
|---|
| 8 | # when there is no Makefile.
|
|---|
| 9 | #
|
|---|
| 10 | # This script is compatible with the BSD install script, but was written
|
|---|
| 11 | # from scratch.
|
|---|
| 12 | #
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | # set DOITPROG to echo to test this script
|
|---|
| 16 |
|
|---|
| 17 | # Don't use :- since 4.3BSD and earlier shells don't like it.
|
|---|
| 18 | doit="${DOITPROG-}"
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | # put in absolute paths if you don't have them in your path; or use env. vars.
|
|---|
| 22 |
|
|---|
| 23 | mvprog="${MVPROG-mv}"
|
|---|
| 24 | cpprog="${CPPROG-cp}"
|
|---|
| 25 | chmodprog="${CHMODPROG-chmod}"
|
|---|
| 26 | chownprog="${CHOWNPROG-chown}"
|
|---|
| 27 | chgrpprog="${CHGRPPROG-chgrp}"
|
|---|
| 28 | stripprog="${STRIPPROG-strip}"
|
|---|
| 29 | rmprog="${RMPROG-rm}"
|
|---|
| 30 | mkdirprog="${MKDIRPROG-mkdir}"
|
|---|
| 31 |
|
|---|
| 32 | transformbasename=""
|
|---|
| 33 | transform_arg=""
|
|---|
| 34 | instcmd="$mvprog"
|
|---|
| 35 | chmodcmd="$chmodprog 0755"
|
|---|
| |
|---|