8 print("Usage: %s <version|hash>" % sys
.argv
[0])
11 repository
= os
.path
.abspath(os
.path
.dirname(os
.path
.abspath(__file__
)) + "/../..")
12 if '.' in sys
.argv
[1]:
14 basename
= "rockbox-" + version
15 ref
= "refs/tags/v" + version
+ "-final"
16 refs
= gitscraper
.get_refs(repository
)
20 print("Could not find hash for version!")
24 basename
= "rockbox-" + tree
26 gitscraper
.archive_files(repository
, tree
, [], basename
, archive
="7z")