summaryrefslogtreecommitdiff
path: root/nuttx/tools/unlink.bat
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-02-07 09:52:09 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-02-07 09:52:09 -0600
commit80c8215e5554d1fd7682adf131466c45111b8945 (patch)
treebede3faf97d9880cb3c397ac930c98a19060232a /nuttx/tools/unlink.bat
parent50c464397767530fd6ce39d47d3cbd5a426c5e39 (diff)
downloadpx4-nuttx-80c8215e5554d1fd7682adf131466c45111b8945.tar.gz
px4-nuttx-80c8215e5554d1fd7682adf131466c45111b8945.tar.bz2
px4-nuttx-80c8215e5554d1fd7682adf131466c45111b8945.zip
Use xcopy, mot mklink in link.bat; No an error if directory does not exist in unlink.bat
Diffstat (limited to 'nuttx/tools/unlink.bat')
-rwxr-xr-xnuttx/tools/unlink.bat9
1 files changed, 6 insertions, 3 deletions
diff --git a/nuttx/tools/unlink.bat b/nuttx/tools/unlink.bat
index 25e83bb9f..83b3b7a8a 100755
--- a/nuttx/tools/unlink.bat
+++ b/nuttx/tools/unlink.bat
@@ -2,7 +2,7 @@
rem tools/unlink.bat
rem
-rem Copyright (C) 2012 Gregory Nutt. All rights reserved.
+rem Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved.
rem Author: Gregory Nutt <gnutt@nuttx.org>
rem
rem Redistribution and use in source and binary forms, with or without
@@ -42,8 +42,11 @@ rem Check if something already exists at the link path
if exist "%link%" goto :LinkExists
-echo %link% does not exist
-goto :ShowUsage
+rem It is not an error if the link does not exist
+rem echo %link% does not exist
+rem goto :ShowUsage
+
+goto :End
rem %link% make be a symbolic link or it may be a copied director (with
rem a .fakelnk file in it). It really does not matter which: We do the