1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-24 20:41:03 +02:00

Preserve file timestamps when using install(1) (#983)

- Preserve file timestamps when using `install`
- Use permissions `0644` rather than default `0755` for installing man
pages

The alternative calls of `cp` are using `cp -p` as well (if `install` is
unavailable).
This commit is contained in:
Robert Scheck 2022-09-16 09:44:00 +02:00 committed by GitHub
parent 9af9f6306a
commit 50f33bf04e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
configure vendored
View File

@ -461,12 +461,12 @@ else
type install 2>>/dev/null
ER=$?
if [ ${ER} -eq 0 ] ; then
INSTALL_PROGRAM="install"
INSTALL_MAN="install"
INSTALL_SCRIPT="install"
INSTALL_SHARED_LIB="install"
INSTALL_STATIC_LIB="install"
INSTALL_DATA="install"
INSTALL_PROGRAM="install -p"
INSTALL_MAN="install -p -m 0644"
INSTALL_SCRIPT="install -p"
INSTALL_SHARED_LIB="install -p"
INSTALL_STATIC_LIB="install -p"
INSTALL_DATA="install -p"
MKDIR="install -d"
else
INSTALL_PROGRAM="cp -pf"