mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 09:04:57 +08:00
install: set the modes on the files and/or directories on macOS
Changes made for macOS specific for that style of system. Paths are established/defined singularly and modes are set automatically when created. (Platform specific.)
This commit is contained in:
parent
a446106041
commit
a3d4307892
|
@ -81,6 +81,8 @@ case $OS in
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
OS='osx'
|
OS='osx'
|
||||||
|
binTgtDir=/usr/local/bin
|
||||||
|
man1TgtDir=/usr/local/share/man/man1
|
||||||
;;
|
;;
|
||||||
SunOS)
|
SunOS)
|
||||||
OS='solaris'
|
OS='solaris'
|
||||||
|
@ -171,12 +173,14 @@ case "$OS" in
|
||||||
;;
|
;;
|
||||||
'osx')
|
'osx')
|
||||||
#binary
|
#binary
|
||||||
mkdir -p /usr/local/bin
|
mkdir -m 0555 -p ${binTgtDir}
|
||||||
cp rclone /usr/local/bin/rclone.new
|
cp rclone ${binTgtDir}/rclone.new
|
||||||
mv /usr/local/bin/rclone.new /usr/local/bin/rclone
|
mv ${binTgtDir}/rclone.new ${binTgtDir}/rclone
|
||||||
|
chmod a=x ${binTgtDir}/rclone
|
||||||
#manual
|
#manual
|
||||||
mkdir -p /usr/local/share/man/man1
|
mkdir -m 0555 -p ${man1TgtDir}
|
||||||
cp rclone.1 /usr/local/share/man/man1/
|
cp rclone.1 ${man1TgtDir}
|
||||||
|
chmod a=r ${man1TgtDir}/rclone.1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo 'OS not supported'
|
echo 'OS not supported'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user