forked from switch-iot/hin2n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlink.bat
27 lines (25 loc) · 867 Bytes
/
link.bat
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
@echo off
call:chklink n2n_v1 bundles\n2n_meyerd\n2n_v1
call:chklink n2n_v2 bundles\n2n_ntop_v2
call:chklink n2n_v2s bundles\n2n_meyerd\n2n_v2
call:chklink n2n_v3 bundles\n2n_ntop_v3
call:chklink uip bundles\uip\uip
call:chklink tun2tap bundles\tun2tap
call:chklink slog bundles\slog
pushd Hin2n_android\app\src\main\cpp
call:chklink n2n_v1 ..\..\..\..\..\bundles\n2n_meyerd\n2n_v1
call:chklink n2n_v2 ..\..\..\..\..\bundles\n2n_ntop_v2
call:chklink n2n_v2s ..\..\..\..\..\bundles\n2n_meyerd\n2n_v2
call:chklink n2n_v3 ..\..\..\..\..\bundles\n2n_ntop_v3
call:chklink uip ..\..\..\..\..\bundles\uip\uip
call:chklink tun2tap ..\..\..\..\..\bundles\tun2tap
call:chklink slog ..\..\..\..\..\bundles\slog
popd
goto:eof
:chklink
if exist %~1 (
pushd %~1 2>nul && popd || (del /q %~1 & mklink /d %~1 %~2)
) else (
mklink /d %~1 %~2
)
goto:eof