/
githubmirror
/
julia
Обзор
Документация
Войти
/
githubmirror
/
julia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
contrib/install.sh
35 строк
695 B
Shunsuke Shimizu
do not run chmod to symbolic links in install.sh (#27980)
08 июл 2018, 01:20
08 июл 2018, 01:20
1ae3f53
Код
Авторство
О чём код?
#!/bin/sh # This file is a part of Julia. License is MIT: https://julialang.org/license # Usage: very similar to `install` # install.sh 755 src1 src2 ... dest PERMS=$1 shift ARGS="" while [ $# -gt 1 ]; do ARGS="$ARGS $1" shift done DEST=$1 for SRC in $ARGS; do cp -a $SRC $DEST if [ -d "$DEST" ]; then DESTFILE="$DEST/$(basename "$SRC")" else DESTFILE="$DEST" fi # Do the chmod dance. # Symlinks to system libraries are ignored because Julia shouldn't modify # permission of those libraries. If we tried, some platforms would cause # an error. if [ ! -L "$DESTFILE" ]; then chmod $PERMS "$DESTFILE" fi done exit 0