BashUtil のためのリポジトリです。
Revision | 46fe8c6c90f26d3b412b67e12b76f30ce035ef86 (tree) |
---|---|
Time | 2014-01-30 22:33:38 |
Author | iga <tosiki.iga@nift...> |
Commiter | iga |
writing them.
@@ -1,4 +1,48 @@ | ||
1 | 1 | #!/bin/sh |
2 | +# @(#) buassert.fnc ver20140130 | |
3 | +# | |
4 | +# Description: | |
5 | +# Functions for logging messages. | |
6 | +# | |
7 | +# @author Toshiki IGA <tosiki.iga@nifty.ne.jp> | |
8 | +# @version 1.0 2014-01-29 created newly. | |
9 | +##################################################################### | |
10 | + | |
11 | +############################################################################## | |
12 | + | |
13 | +############################################################################## | |
14 | +# bashutil | |
15 | +# Copyright (C) 2014 Toshiki IGA | |
16 | +# | |
17 | +# This library is free software: you can redistribute it and/or modify | |
18 | +# it under the terms of the GNU Lesser General Public License as published by | |
19 | +# the Free Software Foundation, either version 3 of the License, or | |
20 | +# any later version. | |
21 | +# | |
22 | +# This program is distributed in the hope that it will be useful, | |
23 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
24 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
25 | +# GNU Lesser General Public License for more details. | |
26 | +# | |
27 | +# You should have received a copy of the GNU Lesser General Public License | |
28 | +# along with this library. If not, see <http://www.gnu.org/licenses/>. | |
29 | +############################################################################## | |
30 | + | |
31 | +############################################################################## | |
32 | +# Copyright 2014 Toshiki IGA and others. | |
33 | +# | |
34 | +# Licensed under the Apache License, Version 2.0 (the "License"); | |
35 | +# you may not use this file except in compliance with the License. | |
36 | +# You may obtain a copy of the License at | |
37 | +# | |
38 | +# http://www.apache.org/licenses/LICENSE-2.0 | |
39 | +# | |
40 | +# Unless required by applicable law or agreed to in writing, software | |
41 | +# distributed under the License is distributed on an "AS IS" BASIS, | |
42 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
43 | +# See the License for the specific language governing permissions and | |
44 | +# limitations under the License. | |
45 | +############################################################################## | |
2 | 46 | |
3 | 47 | assertEquals() { |
4 | 48 | local message="$1" |
@@ -1,16 +1,46 @@ | ||
1 | 1 | #!/bin/sh |
2 | -# @(#) bumsg.fnc ver1.0 | |
3 | -# | |
4 | -# Usage: | |
5 | -# . bumsg.fnc | |
6 | -# logmsg 'M001' 'Bash' | |
2 | +# @(#) bumsg.fnc ver20140130 | |
7 | 3 | # |
8 | 4 | # Description: |
9 | 5 | # Functions for logging messages. |
10 | 6 | # |
11 | -# @author tosiki.iga@nifty.ne.jp | |
12 | -# @version 1.0 2014-01-29 Created newly. | |
13 | -##################################################################### | |
7 | +# @author Toshiki IGA <tosiki.iga@nifty.ne.jp> | |
8 | +# @version 1.0 2014-01-29 created newly. | |
9 | +############################################################################## | |
10 | + | |
11 | +############################################################################## | |
12 | +# bashutil | |
13 | +# Copyright (C) 2014 Toshiki IGA | |
14 | +# | |
15 | +# This library is free software: you can redistribute it and/or modify | |
16 | +# it under the terms of the GNU Lesser General Public License as published by | |
17 | +# the Free Software Foundation, either version 3 of the License, or | |
18 | +# any later version. | |
19 | +# | |
20 | +# This program is distributed in the hope that it will be useful, | |
21 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 | +# GNU Lesser General Public License for more details. | |
24 | +# | |
25 | +# You should have received a copy of the GNU Lesser General Public License | |
26 | +# along with this library. If not, see <http://www.gnu.org/licenses/>. | |
27 | +############################################################################## | |
28 | + | |
29 | +############################################################################## | |
30 | +# Copyright 2014 Toshiki IGA and others. | |
31 | +# | |
32 | +# Licensed under the Apache License, Version 2.0 (the "License"); | |
33 | +# you may not use this file except in compliance with the License. | |
34 | +# You may obtain a copy of the License at | |
35 | +# | |
36 | +# http://www.apache.org/licenses/LICENSE-2.0 | |
37 | +# | |
38 | +# Unless required by applicable law or agreed to in writing, software | |
39 | +# distributed under the License is distributed on an "AS IS" BASIS, | |
40 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
41 | +# See the License for the specific language governing permissions and | |
42 | +# limitations under the License. | |
43 | +############################################################################## | |
14 | 44 | |
15 | 45 | LOGGER="/usr/bin/logger -t $0 -i" |
16 | 46 |
@@ -1,6 +1,5 @@ | ||
1 | 1 | #!/bin/sh |
2 | 2 | . ../main/bumsg.fnc |
3 | -. ../main/buassert.fnc | |
4 | 3 | . ./simple001.msg |
5 | 4 | |
6 | 5 | logmsg 'M001' 'Bash' |