[openrtm-users 02752] rtm-skelwrapperの "hogehogeStub.cpp" exists and contents is sameのチェックについて

Kei Okada k-okada @ jsk.t.u-tokyo.ac.jp
2013年 1月 23日 (水) 02:18:33 JST


rtm-skelwrapperの "hogehogeStub.cpp" exists and contents is sameのチェックですが、
いまは、
		        newtext = re.sub(" \@date.*?\n", "", text)
                        oldtext2 = re.sub(" \@date.*?\n", "", oldtext)
                        if newtext == oldtext2:
                                print "\"" + fname + \
                            "\" exists and contents is same."
                                print "No need to generate the file."
                                return
                        else:
                                print "\"", fname, \
                            "\" already exists but contents are not same"

の様になっていて、textには出力予定のテキストがはいっているとおもいます。
のとき、idlのファイルの内容がかわっただけだと、出力されるテキストは同じになっていて、
idlは更新されるけど、stub/skelファイルに変更がない状況が生じているようです。
添付の様なパッチをあてると、idlの中身が更新されればsktl/stubも更新されるようになりますが、
どうでしょうか。
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: skel_wrapper_use_md5.patch
型:         application/octet-stream
サイズ:     1201 バイト
説明:       無し
URL:        <http://www.openrtm.org/pipermail/openrtm-users/attachments/20130123/28531a68/attachment.obj>


More information about the openrtm-users mailing list