diff --git a/setup.cmd b/setup.cmd deleted file mode 100644 index 096dda5..0000000 --- a/setup.cmd +++ /dev/null @@ -1 +0,0 @@ -@powershell -ExecutionPolicy unrestricted %~dp0setup.ps1 diff --git a/setup.ps1 b/setup.ps1 deleted file mode 100644 index fad6668..0000000 --- a/setup.ps1 +++ /dev/null @@ -1,23 +0,0 @@ -function new-link($link, $target) { - if (test-path $target -PathType Container) { - cmd /c mklink /j $link $target - } else { - cmd /c mklink /h $link $target - } -} - -$ignore = @(".gitignore", "setup.ps1", "setup.cmd") - -Get-ChildItem . | - ? { !$ignore.Contains($_.Name) } | - % { - $l = split-path -leaf $_.FullName - $p = split-path -parent (split-path -parent $_.FullName) - $t = join-path $p $l - - if (test-path $t) { - remove-item -recurse -force $t - } - - new-link $t $($_.FullName) - }