-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cmd
More file actions
61 lines (52 loc) · 2.45 KB
/
setup.cmd
File metadata and controls
61 lines (52 loc) · 2.45 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@echo off
rem Setup a repository during individual development.
rem
rem This script requires git program in the PATH.
rem Copyright (C) 2023 The C++ Plus Project.
rem
rem This program is free software: you can redistribute it and/or modify
rem it under the terms of the GNU Lesser General Public License as published by
rem the Free Software Foundation; either version 3 of the License, or
rem (at your option) any later version.
rem
rem This program is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
rem GNU Lesser General Public License for more details.
rem
rem You should have received a copy of the GNU Lesser General Public License
rem along with this program. If not, see <https://www.gnu.org/licenses/>.
rem Usage: setup.cmd
if exist .\cppp-platform (
echo Success: '.\cppp-platform' is exists, please don't remove it, and you can develop this package normally.
goto QUIT
)
if exist ..\cppp-platform (
echo Success: '..\cppp-platform' is exists, please don't remove it, and you can develop this package normally.
goto QUIT
)
echo Notice: '..\cppp-platform' for C++ Plus are not exists, cloning it......
git clone https://github.com/cppp-project/cppp-platform
if %errorlevel%==0 (
echo Success: '.\cppp-platform' cloned successfully, please don't remove it, and you can develop this package normally.
) else (
echo Error: .\cppp-platform' cloned failed, you can clone it by yourself or copy it from C++ Plus release source package.
echo Notice: try to run 'git clone https://github.com/cppp-project/cppp-platform'.
)
if exist .\cppp-reiconv (
echo Success: '.\cppp-reiconv' is exists, please don't remove it, and you can develop this package normally.
goto QUIT
)
if exist ..\cppp-reiconv (
echo Success: '..\cppp-reiconv' is exists, please don't remove it, and you can develop this package normally.
goto QUIT
)
echo Notice: '..\cppp-reiconv' for C++ Plus are not exists, cloning it......
git clone https://github.com/cppp-project/cppp-reiconv
if %errorlevel%==0 (
echo Success: '.\cppp-reiconv' cloned successfully, please don't remove it, and you can develop this package normally.
) else (
echo Error: .\cppp-reiconv' cloned failed, you can clone it by yourself or copy it from C++ Plus release source package.
echo Notice: try to run 'git clone https://github.com/cppp-project/cppp-reiconv'.
)
:QUIT