Skip to content

Commit ec614c0

Browse files
committed
check for existence before cloning
1 parent a1113bb commit ec614c0

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

support/cygwin_juliadev.ps1

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
(new-object net.webclient).DownloadFile("http://cygwin.com/setup-x86_64.exe", "C:\cygwin\setup-x86_64.exe")
1+
(new-object net.webclient).DownloadFile(
2+
"http://cygwin.com/setup-x86_64.exe", "C:\cygwin\setup-x86_64.exe")
23
foreach ($pkg in @("make","curl","patch","python","gcc-g++","m4","p7zip",
34
"mingw64-i686-gcc-g++","mingw64-i686-gcc-fortran",
45
"mingw64-x86_64-gcc-g++","mingw64-x86_64-gcc-fortran")) {
56
Write-Host $("Installing "+$pkg)
67
& C:\cygwin\setup-x86_64.exe -q -n -g -P $pkg >$null 2>&1
78
}
8-
& git config --global core.autocrlf input
9-
C:\cygwin\bin\sh -lc "git clone git://github.com/JuliaLang/julia.git julia32 && \
10-
cd julia32 && git submodule init && git submodule update && \
11-
XC_HOST=i686-w64-mingw32 make -j2 -C deps"
12-
C:\cygwin\bin\sh -lc "git clone git://github.com/JuliaLang/julia.git julia64 && \
13-
cd julia64 && git submodule init && git submodule update && \
14-
XC_HOST=x86_64-w64-mingw32 make -j2 -C deps"
9+
C:\cygwin\bin\sh -lc "git config --global core.autocrlf input"
10+
C:\cygwin\bin\sh -lc "if ! [ -e julia32 ]; then git clone \
11+
git://github.com/JuliaLang/julia.git julia32; fi && \
12+
cd julia32 && git submodule init && git pull && \
13+
git submodule update && XC_HOST=i686-w64-mingw32 make -C deps"
14+
C:\cygwin\bin\sh -lc "if ! [ -e julia64 ]; then git clone \
15+
git://github.com/JuliaLang/julia.git julia64; fi && \
16+
cd julia64 && git submodule init && git pull && \
17+
git submodule update && XC_HOST=x86_64-w64-mingw32 make -C deps"

0 commit comments

Comments
 (0)