Browse Source

refs #1 Synchronize with release commit: 29d8a75477

qt5
parent
commit
9debc86039
3 changed files with 20 additions and 6 deletions
  1. +7
    -6
      3.0/update_gpl_source.py
  2. +5
    -0
      README.md
  3. +8
    -0
      tc.qbs

+ 7
- 6
3.0/update_gpl_source.py View File

@@ -20,7 +20,7 @@ class PublicFiles(object):
self.files = set(files)
self.git_path = git_path

def is_public(self, file):
def is_public(self, file, **kwargs):
if file in self.files:
return True

@@ -28,14 +28,15 @@ class PublicFiles(object):

for i in range(2, len(ff) + 1):
path = "/".join(ff[0:i])
path = path + "/" if self.is_dir(path) else path
path = path + "/" if self.is_dir(path, **kwargs) else path
if path in self.files:
return True

return False

def is_dir(self, p):
return os.path.isdir(self.git_path + p)
def is_dir(self, p, **kwargs):
git_path = kwargs.get('git_path', self.git_path)
return os.path.isdir(git_path + p)


class FileList(object):
@@ -113,7 +114,7 @@ def main(gpl_path, internal_path):
print()

for i in internal_files.get_files():
if public_files.is_public(i):
if public_files.is_public(i, git_path=internal_files.home_path):
if gpl_files.file_content_hash(i) != internal_files.file_content_hash(i):
print("Updating {}".format(internal_files.original_name(i)))
dst = gpl_files.absolute_path(internal_files.original_name(i))
@@ -140,7 +141,7 @@ def main(gpl_path, internal_path):
print("Files updated: {}".format(updated_counter))

if removed_counter or updated_counter:
message = "refs #1 Syncronizing with {branch} commit: {c}".format(branch="release", c=internal_files.git_sha())
message = "refs #1 Synchronize with {branch} commit: {c}".format(branch="release", c=internal_files.git_sha())
print("Sources changed. Please review changes, commit and push.")
print("Cooment: {}".format(message))
# commit = gpl_files.git_repo.index.commit(message)


+ 5
- 0
README.md View File

@@ -0,0 +1,5 @@

# Links

* [FAQ](https://dev.cyberplat.com/CyberPlat/TerminalClient/wiki/faq)
* [Supported devices](https://dev.cyberplat.com/CyberPlat/TerminalClient/wiki/supported_device)

+ 8
- 0
tc.qbs View File

@@ -0,0 +1,8 @@
import qbs 1.0

Project {
references: [
"3.0/src/TerminalClient.qbs",
"thirdparty/Thirdparty.qbs",
]
}

Loading…
Cancel
Save