• R/O
  • HTTP
  • SSH
  • HTTPS

srcHead: Commit

ソースコードのヘッダ部のコピーライトを管理するツール


Commit MetaInfo

Revision6a3801b002f1339f297060ab78eba8b4d4a27b00 (tree)
Time2009-08-23 05:14:02
AuthorHisato Tatekura <hisato@myno...>
CommiterHisato Tatekura

Log Message

空行を増やさないよう修正。

Change Summary

Incremental Difference

--- a/apl2Head.txt
+++ b/apl2Head.txt
@@ -1,3 +1,4 @@
1+// vim:set ts=4 sts=4 sw=4 noet fenc=utf-8:
12 /*
23 Copyright 2009 senju@users.sourceforge.jp
34
@@ -12,5 +13,5 @@
1213 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1314 See the License for the specific language governing permissions and
1415 limitations under the License.
15-*/
16+ */
1617
--- a/delete.py
+++ b/delete.py
@@ -66,7 +66,17 @@ for path in sys.stdin:
6666 file.close()
6767 continue
6868
69+
70+
6971 buf = ""
72+ # コメント終了後の空行を読み飛ばし
73+ for line in file:
74+ if line.strip() == "":
75+ continue
76+ else: # 空行以外に遭遇したら
77+ buf += line
78+ break
79+
7080 # ソースを読み込む
7181 for line in file:
7282 buf += line
Show on old repository browser