]> rtime.felk.cvut.cz Git - arc.git/blob - scripts/req.sh
Merge with 096eddbdea724281bf8285d1b223b30a17c57683
[arc.git] / scripts / req.sh
1 #/bin/bash
2 #
3 # $ req (OS|xxx) (get|diff) ... [filter <xx>]
4 #     ls                : Print all requirements
5 #                       :
6 #     get <requirement> :
7 #     diff <1> <2>      : <> = req | code | test
8 #     filter <xx>       :
9 #
10 # Diff the requirements against the code
11 # $ req OS diff req code
12 #
13 # Diff the requirements against the code
14 # $ req OS diff req test
15 #
16 # Get the requiment for OS123
17 # $ req OS get OS123
18 #
19 # Get the requiment for OS123
20 # $ req OS get OS123 "<Class>=1"
21 # $ scripts/req.sh diff OS code "Class=1"
22
23 REBOL=/C/devtools/utils/r3-a96.exe
24
25 #case $2 in
26 #  get) echo "get";;
27 #  diff) echo "diff";;
28 #  *)  echo "default";
29 #esac
30
31 #echo $2
32 #echo $3
33 #echo $4
34
35
36 # exit
37
38 # req-diff req code "<Class>=2"
39 # req-ls req
40 # req-ls code "<Class>=1"
41 # req-ls test
42
43 SCRIPT_DIR=`dirname $0`
44 cmd.exe /S /K "$REBOL $SCRIPT_DIR\extract_req.r $1 $2 $3 \"$4\" > result.txt && exit"
45 #powershell -Command "$REBOL $SCRIPT_DIR\extract_req.r $1 $2 $3 \"$4\" > result.txt"
46 #powershell -Command $REBOL $SCRIPT_DIR/extract_req.r $1 $2 $3 \"$4\"
47 cat result.txt
48
49
50
51
52
53
54
55
56