Allow script/build --install on all platforms

This commit is contained in:
Antonio Scandurra
2016-08-30 11:32:22 +02:00
parent 61aef00e71
commit 5b85e1c797
6 changed files with 100 additions and 8 deletions

18
script/copy-folder.cmd Normal file
View File

@@ -0,0 +1,18 @@
@echo off
set USAGE=Usage: %0 source destination
if [%1] == [] (
echo %USAGE%
exit 1
)
if [%2] == [] (
echo %USAGE%
exit 2
)
:: rm -rf %2
if exist %2 rmdir %2 /s /q
:: cp -rf %1 %2
(robocopy %1 %2 /e) ^& IF %ERRORLEVEL% LEQ 1 exit 0