mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
Update tools/link.sh per suggestions by Mark so that it can be used with MSYS vs copydir.sh.
This commit is contained in:
@@ -94,3 +94,18 @@ fi
|
||||
|
||||
ln -s "${src}" "${dest}" || \
|
||||
{ echo "Failed to create link: $dest" ; exit 1 ; }
|
||||
|
||||
# Verify that the link was created
|
||||
|
||||
if [ ! -h ${dest} ]; then
|
||||
# The MSYS 'ln' command actually does a directory copy
|
||||
|
||||
if [ -d ${dest} ]; then
|
||||
# Create the .fakelnk for unlink.sh
|
||||
touch ${dest}/.fakelnk
|
||||
else
|
||||
echo "Error: link at ${dest} not created."
|
||||
exit 1
|
||||
if
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user