Using tolua++, can I automatically generate pkg files for each class?

I use tolua*+ to generate lua bindings, but writing pkg files takes some time. If I modify the C*+ classes in the future I have to modify the pkg files, too.

For example, in the cocos2d-x lua binding there are a lot of pkg files, are they written by hand? Is there a tool to write pkg files for me?

Thanks very much!

Also want to know the answer, how to generate .pkg file?

Just copy the content of head file to pkg.