File: buildtools_install.py

package info (click to toggle)
google-android-installers 1675172738
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm
  • size: 4,384 kB
  • sloc: xml: 12,099; sh: 1,118; makefile: 758; python: 722
file content (8 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
def generate(install,api_level,archive):
    f = open("script/maintscript/google-android-build-tools-X-installer.install.ex")
    i = f.read()
    o = open(install, "w")
    i = i.replace("$X",api_level).replace("$Y",archive)
    o.write(i)
    o.close()
    print ":... \033[0;34mGENERATED\033[0m google-android-build-tools-"+api_level+"-installer.install"