Revision d4d015664fa1a42285d206791a7bf2dd788f4f4e authored by toivoh on 01 March 2016, 18:08:35 UTC, committed by Tony Kelman on 13 March 2016, 23:46:30 UTC
They are still given to the user in macro arguments, otherwise LineNumberNode seems to be used consistently. (cherry picked from commit 3a16b19eb6c03a89d58a92d7623e60a83b21c3d8) ref #15309
1 parent 6fffa59
install.sh
#!/bin/sh
# This file is a part of Julia. License is MIT: http://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
# Copy file, then take output of the form 'src' -> 'dest' and get only 'dest'
DESTFILE=$(LC_ALL=C cp -va $SRC $DEST | sed -e $'s/ -> /\\\n/g' | tail -n 1)
# If there are surrounding quotes, remove them. We do this simply by knowing that the destination is always an absolute path
if [ "$(echo $DESTFILE | head -c1)" != "/" ]; then
DESTFILE=$(echo $DESTFILE | awk '{print substr($0, 2, length-2)}')
fi
# Do the chmod dance, and ignore errors on platforms that don't like setting permissions of symlinks
chmod $PERMS $DESTFILE 2>/dev/null
done
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...