Introduce gitattributes and version.dist to autogenerate version info for archives