-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprepare.cmd
More file actions
42 lines (35 loc) · 1.07 KB
/
prepare.cmd
File metadata and controls
42 lines (35 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
setlocal
set HERE=%~dp0
set LOCALFOLDER=%HERE%local
set LOCALFBREPO=%HERE%local\full-build-org
set LOCALCSREPO=%HERE%local\cassandra-sharp-org
set LOCALCSCREPO=%HERE%local\cassandra-sharp-contrib-org
set LOCALBIN=%HERE%local\bin-org
set PAKETBOOTSTRAP=%HERE%tools/paket.bootstrapper.exe
set PAKET=%HERE%tools/paket.exe
set PATH=%PATH%;%HERE%packages\Paket\tools
rmdir /s /q %LOCALFOLDER%
rem create binaries folder
mkdir %LOCALBIN%
rem creating master repository
mkdir %LOCALFBREPO%
git init %LOCALFBREPO%
pushd %LOCALFBREPO%
git config --local receive.denyCurrentBranch updateInstead
echo dummy > dummy.txt
git add dummy.txt
git commit -am "initial commit"
popd
rem cloning repositories
git clone https://github.com/pchalamet/cassandra-sharp %LOCALCSREPO%
pushd %LOCALCSREPO%
git config --local receive.denyCurrentBranch updateInstead
popd
git clone https://github.com/pchalamet/cassandra-sharp-contrib %LOCALCSCREPO%
pushd %LOCALCSCREPO%
git config --local receive.denyCurrentBranch updateInstead
popd
rem fetch tools
%PAKETBOOTSTRAP%
%PAKET% restore || goto :ko
type %HERE%paket.lock