-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcommon.dbg
More file actions
30 lines (26 loc) · 826 Bytes
/
common.dbg
File metadata and controls
30 lines (26 loc) · 826 Bytes
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
$$ .echo +++++++ loading ${$arg0}
$$ .echo Run as: $$>a<${$arg0}
$$ .echo $arg1 ${$arg1}
.if($scmp("${$arg1}","curFuncName")==0)
{
.shell -ci "ln @$scopeip" (find /i "|")>2 & (set /p addrSrc=)<2 & call "${$arg0}\..\common.bat" curFuncName
}
.elsif($scmp("${$arg1}","curFuncAddr")==0)
{
.shell -ci "ln @$scopeip" (find /i "|")>2 & (set /p addrSrc=)<2 & call "${$arg0}\..\common.bat" curFuncAddr
}
.elsif($scmp("${$arg1}","test")==0)
{
.echo test : $$>a<${$arg0} ${$arg1}
}
.elsif(0==${/d:$arg1})
{
.echo usage example : $$>a<${$arg0} "test"
.echo e.g. $$>a<${$arg0} "curFuncName"
}
.else
{
.foreach /s ( _t_val "once" ) { .shell -ci "*" "${$arg0}\..\common.bat" "${/f:$arg1}" "${/f:$arg2}" "${/f:$arg3}" "${/f:$arg4}" };
}
$$ .echo
$$ .echo ------- exiting ${$arg0}