140 global ignoredPaths
141
143 global versiondir
144 versiondir = 'dart-%s' % version
145 debian_dir = 'tools/linux_dist_support/debian'
146
147
149 ignoredPaths.append(builddir)
150
151 print(
'Creating tarball: %s' % tarfilename)
152 with tarfile.open(tarfilename, mode='w:gz') as tar:
153 for f in listdir(DART_DIR):
154 tar.add(
join(DART_DIR, f), filter=Filter)
155 for f
in listdir(
join(DART_DIR, debian_dir)):
156 tar.add(
join(DART_DIR, debian_dir, f),
157 arcname='%s/debian/%s' % (versiondir, f))
158
160
161 copyright_file =
join(temp_dir,
'copyright')
163 tar.add(copyright_file, arcname='%s/debian/copyright' % versiondir)
164
165
166 change_log =
join(temp_dir,
'changelog')
168 tar.add(change_log, arcname='%s/debian/changelog' % versiondir)
169
170
171 empty =
join(temp_dir,
'empty')
173 tar.add(empty, arcname='%s/dart/.git/logs/HEAD' % versiondir)
174
175
177 git_revision =
join(temp_dir,
'GIT_REVISION')
179 tar.add(git_revision,
180 arcname='%s/dart/tools/GIT_REVISION' % versiondir)
181
182
183 git_timestamp =
join(temp_dir,
'GIT_TIMESTAMP')
185 tar.add(git_timestamp,
186 arcname='%s/dart/tools/GIT_TIMESTAMP' % versiondir)
187
def GenerateCopyright(filename)
def GenerateGitRevision(filename, git_revision)
def CreateTarball(tarfilename)
def GenerateEmpty(filename)
def GenerateGitTimestamp(filename, git_timestamp)
def GenerateChangeLog(filename, version)
def print(*args, **kwargs)
def GetGitTimestamp(git_timestamp_file=None, repo_path=DART_DIR)
def GetChannel(version_file=None)
def GetVersion(no_git_hash=False, version_file=None, git_revision_file=None)
def GetGitRevision(git_revision_file=None, repo_path=DART_DIR)
static SkString join(const CommandLineFlags::StringArray &)