forked from mfulz_github/qmk_firmware
Clean up Studio Integration cache generation script. Re-indent integration VSIX XML files.
This commit is contained in:
parent
6019754b7a
commit
3383487deb
|
@ -1,8 +1,8 @@
|
||||||
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
||||||
<Default Extension="vsixmanifest" ContentType="text/xml"/>
|
<Default Extension="vsixmanifest" ContentType="text/xml"/>
|
||||||
<Default Extension="cache" ContentType="text/xml"/>
|
<Default Extension="cache" ContentType="text/xml"/>
|
||||||
<Default Extension="png" ContentType="application/octet-stream"/>
|
<Default Extension="png" ContentType="application/octet-stream"/>
|
||||||
<Default Extension="txt" ContentType="text/plain"/>
|
<Default Extension="txt" ContentType="text/plain"/>
|
||||||
<Default Extension="xml" ContentType="text/xml"/>
|
<Default Extension="xml" ContentType="text/xml"/>
|
||||||
<Default Extension="zip" ContentType="application/octet-stream"/>
|
<Default Extension="zip" ContentType="application/octet-stream"/>
|
||||||
</Types>
|
</Types>
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
<AsfContentProvider Version="1.0.0">
|
<AsfContentProvider Version="1.0.0">
|
||||||
<Identifier Id="0e160d5c-e331-48d9-850b-e0387912171b">
|
<Identifier Id="0e160d5c-e331-48d9-850b-e0387912171b">
|
||||||
<Org>FourWalledCubicle</Org>
|
<Org>FourWalledCubicle</Org>
|
||||||
<ShortName>LUFA</ShortName>
|
<ShortName>LUFA</ShortName>
|
||||||
<Author>Dean Camera</Author>
|
<Author>Dean Camera</Author>
|
||||||
<Description/>
|
<Description/>
|
||||||
<FollowFolderStructure>True</FollowFolderStructure>
|
<FollowFolderStructure>True</FollowFolderStructure>
|
||||||
</Identifier>
|
</Identifier>
|
||||||
<AsfContent Type="zip" Path="contents.zip">
|
<AsfContent Type="zip" Path="contents.zip">
|
||||||
<Content>
|
<Content>
|
||||||
<Version>0</Version>
|
<Version>0</Version>
|
||||||
<HelpURL/>
|
<HelpURL/>
|
||||||
<Locator/>
|
<Locator/>
|
||||||
<DbXMLPath>content.xml.cache</DbXMLPath>
|
<DbXMLPath>content.xml.cache</DbXMLPath>
|
||||||
<Description/>
|
<Description/>
|
||||||
</Content>
|
</Content>
|
||||||
</AsfContent>
|
</AsfContent>
|
||||||
</AsfContentProvider>
|
</AsfContentProvider>
|
||||||
|
|
|
@ -7,30 +7,32 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
sys.path.append("ProjectGenerator")
|
sys.path.append("ProjectGenerator")
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def show_message(message):
|
||||||
|
print "[Project Generator] %s" % message
|
||||||
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
|
||||||
|
def main(lufa_root_path):
|
||||||
try:
|
try:
|
||||||
from asf_avrstudio5_interface import PythonFacade
|
from asf_avrstudio5_interface import PythonFacade
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "Fatal Error: The ASF project generator is missing."
|
print "Fatal Error: The ASF project generator is missing."
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
p = PythonFacade(os.path.abspath(__file__))
|
p = PythonFacade(lufa_root_path)
|
||||||
|
|
||||||
print "[Project Generator] Checking database sanity..."
|
show_message("Checking database sanity...")
|
||||||
sys.stdout.flush()
|
p.check_extension_database_sanity(lufa_root_path)
|
||||||
p.check_extension_database_sanity(sys.argv[1])
|
|
||||||
|
|
||||||
print "[Project Generator] Building cache files..."
|
show_message("Building cache files...")
|
||||||
sys.stdout.flush()
|
p.generate_extension_cache_files(lufa_root_path)
|
||||||
p.generate_extension_cache_files(sys.argv[1])
|
|
||||||
|
|
||||||
print "[Project Generator] Cache files created."
|
show_message("Cache files created.")
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
sys.exit(main())
|
sys.exit(main(sys.argv[1]))
|
||||||
|
|
Loading…
Reference in New Issue