summaryrefslogtreecommitdiffstats
path: root/ios/build
diff options
context:
space:
mode:
authorsdefresne <sdefresne@chromium.org>2016-03-10 04:28:28 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-10 12:29:48 +0000
commit39e8a6f4d2067be7cad55eb16f699fa2eaa40d11 (patch)
treed0cdd7691a1198daee62aad09de69be3dddf4b1e /ios/build
parent9637a42fca6774af3b2b4c610cf0b5254803ca9f (diff)
downloadchromium_src-39e8a6f4d2067be7cad55eb16f699fa2eaa40d11.zip
chromium_src-39e8a6f4d2067be7cad55eb16f699fa2eaa40d11.tar.gz
chromium_src-39e8a6f4d2067be7cad55eb16f699fa2eaa40d11.tar.bz2
Remove obsolete override "ios_extra_version_path".
Chrome on iOS is aligning with the rest of Chrome and no longer uses "ios_extra_version_path". Remove it from version_info components and remove the "gclient" hook that generated ios/build/util/CANARY_VERSION. BUG=591419 Review URL: https://codereview.chromium.org/1784783002 Cr-Commit-Position: refs/heads/master@{#380394}
Diffstat (limited to 'ios/build')
-rw-r--r--ios/build/util/VERSION1
-rwxr-xr-xios/build/util/canary_version.py58
2 files changed, 0 insertions, 59 deletions
diff --git a/ios/build/util/VERSION b/ios/build/util/VERSION
deleted file mode 100644
index f8c1610..0000000
--- a/ios/build/util/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-PATCH=0
diff --git a/ios/build/util/canary_version.py b/ios/build/util/canary_version.py
deleted file mode 100755
index 0992368..0000000
--- a/ios/build/util/canary_version.py
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/usr/bin/env python
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Writes canary version information to a specified file."""
-
-import datetime
-import sys
-import optparse
-import os
-
-
-def WriteIfChanged(file_name, content):
- """
- Write |content| to |file_name| iff the content is different from the
- current content.
- """
- try:
- old_content = open(file_name, 'rb').read()
- except EnvironmentError:
- pass
- else:
- if content == old_content:
- return
- os.unlink(file_name)
- open(file_name, 'wb').write(content)
-
-
-def main(argv=None):
- if argv is None:
- argv = sys.argv
-
- parser = optparse.OptionParser(usage="canary_version.py [options]")
- parser.add_option("-o", "--output", metavar="FILE",
- help="write patch level to FILE")
- opts, args = parser.parse_args(argv[1:])
- out_file = opts.output
-
- if args and out_file is None:
- out_file = args.pop(0)
-
- if args:
- sys.stderr.write('Unexpected arguments: %r\n\n' % args)
- parser.print_help()
- sys.exit(2)
-
- # Number of days since January 1st, 2012.
- day_number = (datetime.date.today() - datetime.date(2012, 1, 1)).days
- content = "PATCH={}\n".format(day_number)
-
- if not out_file:
- sys.stdout.write(content)
- else:
- WriteIfChanged(out_file, content)
-
-if __name__ == '__main__':
- sys.exit(main())