-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added fonts into localizable files; added some useful
- Loading branch information
Showing
4 changed files
with
86 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/python3 | ||
|
||
from sys import argv | ||
from glob import glob | ||
from subprocess import check_output | ||
from os.path import join, isfile | ||
|
||
def scan_dir(dir): | ||
files = {} | ||
for file in glob("**/*", recursive=True, root_dir=dir): | ||
path = join(dir, file) | ||
if isfile(path): | ||
md5 = check_output(["md5sum", path]).decode("utf-8").replace("\n", "").split(" ")[0].strip() | ||
files[file.lower()] = md5 | ||
return files | ||
|
||
missed_files = [] | ||
not_mached_files = [] | ||
src = scan_dir(argv[1]) | ||
dst = scan_dir(argv[2]) | ||
|
||
for next in src: | ||
if not next in dst: | ||
missed_files.append(next) | ||
elif src[next] != dst[next]: | ||
not_mached_files.append(next + " " + src[next] + " " + dst[next]) | ||
|
||
for next in dst: | ||
if not next in src: | ||
missed_files.append(next) | ||
|
||
print("Missed files:") | ||
for next in missed_files: | ||
print(next) | ||
|
||
print("Not matched:") | ||
for next in not_mached_files: | ||
print(next) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/python3 | ||
|
||
from glob import glob | ||
from os import unlink | ||
from subprocess import check_call; | ||
|
||
for file in glob("**/*.pak", recursive=True): | ||
print("Extracting", file) | ||
check_call(["unzip", "-q", file, "-d", "./"]) | ||
unlink(file) |