|
@@ -1,18 +1,18 @@
|
1
|
1
|
#!/bin/bash
|
2
|
2
|
|
3
|
3
|
|
4
|
|
-FFOO_EXIT_OK=0
|
5
|
|
-FFOO_EXIT_NO=1
|
6
|
|
-FFOO_EXIT_USAGE=2
|
7
|
|
-FFOO_EXIT_ERROR=3
|
8
|
|
-FFOO_EXIT_PANIC=4
|
|
4
|
+FFOO_EXITS_OK=0
|
|
5
|
+FFOO_EXITS_NO=1
|
|
6
|
+FFOO_EXITS_USAGE=2
|
|
7
|
+FFOO_EXITS_ERROR=3
|
|
8
|
+FFOO_EXITS_PANIC=4
|
9
|
9
|
|
10
|
10
|
|
11
|
11
|
exit_ok() {
|
12
|
12
|
#
|
13
|
13
|
# Exit script with success
|
14
|
14
|
#
|
15
|
|
- exit $FFOO_EXIT_OK
|
|
15
|
+ exit $FFOO_EXITS_OK
|
16
|
16
|
}
|
17
|
17
|
|
18
|
18
|
|
|
@@ -20,7 +20,7 @@ exit_no() {
|
20
|
20
|
#
|
21
|
21
|
# Exit script with answer "no"
|
22
|
22
|
#
|
23
|
|
- exit $FFOO_EXIT_NO
|
|
23
|
+ exit $FFOO_EXITS_NO
|
24
|
24
|
}
|
25
|
25
|
|
26
|
26
|
|
|
@@ -28,7 +28,7 @@ exit_usage() {
|
28
|
28
|
#
|
29
|
29
|
# Exit script with usage error
|
30
|
30
|
#
|
31
|
|
- exit $FFOO_EXIT_USAGE
|
|
31
|
+ exit $FFOO_EXITS_USAGE
|
32
|
32
|
}
|
33
|
33
|
|
34
|
34
|
|
|
@@ -36,7 +36,7 @@ exit_error() {
|
36
|
36
|
#
|
37
|
37
|
# Exit script with generic unexpected error
|
38
|
38
|
#
|
39
|
|
- exit $FFOO_EXIT_ERROR
|
|
39
|
+ exit $FFOO_EXITS_ERROR
|
40
|
40
|
}
|
41
|
41
|
|
42
|
42
|
|
|
@@ -44,7 +44,7 @@ exit_panic() {
|
44
|
44
|
#
|
45
|
45
|
# Exit script in panic (e.g. assert failure, sure bug)
|
46
|
46
|
#
|
47
|
|
- exit $FFOO_EXIT_PANIC
|
|
47
|
+ exit $FFOO_EXITS_PANIC
|
48
|
48
|
}
|
49
|
49
|
|
50
|
50
|
|
|
@@ -64,7 +64,7 @@ exits_ok() {
|
64
|
64
|
#
|
65
|
65
|
# Exit script with success
|
66
|
66
|
#
|
67
|
|
- exits $FFOO_EXIT_OK
|
|
67
|
+ exits $FFOO_EXITS_OK
|
68
|
68
|
}
|
69
|
69
|
|
70
|
70
|
|
|
@@ -72,7 +72,7 @@ exits_no() {
|
72
|
72
|
#
|
73
|
73
|
# Exit script with answer "no"
|
74
|
74
|
#
|
75
|
|
- exits $FFOO_EXIT_NO
|
|
75
|
+ exits $FFOO_EXITS_NO
|
76
|
76
|
}
|
77
|
77
|
|
78
|
78
|
|
|
@@ -80,7 +80,7 @@ exits_usage() {
|
80
|
80
|
#
|
81
|
81
|
# Exit script with usage error
|
82
|
82
|
#
|
83
|
|
- exits $FFOO_EXIT_USAGE
|
|
83
|
+ exits $FFOO_EXITS_USAGE
|
84
|
84
|
}
|
85
|
85
|
|
86
|
86
|
|
|
@@ -88,7 +88,7 @@ exits_error() {
|
88
|
88
|
#
|
89
|
89
|
# Exit script with generic unexpected error
|
90
|
90
|
#
|
91
|
|
- exits $FFOO_EXIT_ERROR
|
|
91
|
+ exits $FFOO_EXITS_ERROR
|
92
|
92
|
}
|
93
|
93
|
|
94
|
94
|
|
|
@@ -96,7 +96,7 @@ exits_panic() {
|
96
|
96
|
#
|
97
|
97
|
# Exit script in panic (e.g. assert failure, sure bug)
|
98
|
98
|
#
|
99
|
|
- exits $FFOO_EXIT_PANIC
|
|
99
|
+ exits $FFOO_EXITS_PANIC
|
100
|
100
|
}
|
101
|
101
|
|
102
|
102
|
|