-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathplease
More file actions
executable file
·40 lines (36 loc) · 828 Bytes
/
please
File metadata and controls
executable file
·40 lines (36 loc) · 828 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
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
function run_command() {
find ./semantics/cpp -name "*.k" -print0 | xargs -0 "$@"
}
function main() {
cmd="$1"
shift
case "$cmd" in
"reformat")
run_command ./scripts/please.d/reformat.sh "$@"
;;
"generate-module")
./scripts/please.d/modgen.sh "$@"
;;
"get-module-list")
run_command ./scripts/please.d/getModuleList.sh "$@"
;;
"find-module")
run_command ./scripts/please.d/findModule.sh "$@"
;;
"find-definition-of")
run_command ./scripts/please.d/findDefinitionOf.sh "$@"
;;
*)
echo "Usage: $0 command"
echo "commands:"
echo " reformat"
echo " generate-module"
echo " get-module-list"
echo " find-module"
echo " find-definition-of"
exit 1
;;
esac
}
main "$@"