Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2756)

Unified Diff: check_root_dir.py

Issue 2997123002: DEPS: Remove migration scripts and use hooks_os. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | cleanup_links.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: check_root_dir.py
diff --git a/check_root_dir.py b/check_root_dir.py
deleted file mode 100755
index 57a6e6da9370df90f6e221277a5d0eca94775fdb..0000000000000000000000000000000000000000
--- a/check_root_dir.py
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
-#
-# Use of this source code is governed by a BSD-style license
-# that can be found in the LICENSE file in the root of the source
-# tree. An additional intellectual property rights grant can be found
-# in the file PATENTS. All contributing project authors may
-# be found in the AUTHORS file in the root of the source tree.
-
-"""Checks for legacy root directory and instructs the user how to upgrade."""
-
-import os
-import sys
-
-SOLUTION_ROOT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)),
- os.pardir)
-MESSAGE = """\
-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- A C T I O N R E Q I R E D
-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
-It looks like you have a legacy checkout where the solution's top-level
-directory is named 'trunk'. From now on, it must be named 'src'.
-
-What you need to do is to:
-
-1. Edit your .gclient file and change the solution name from 'trunk' to 'src'
-2. Rename your 'trunk' directory to 'src'
-3. Re-run gclient sync (or gclient runhooks)"""
-
-
-def main():
- gclient_filename = os.path.join(SOLUTION_ROOT_DIR, '.gclient')
- config_dict = {}
- try:
- with open(gclient_filename, 'rb') as gclient_file:
- exec(gclient_file, config_dict)
- for solution in config_dict.get('solutions', []):
- if solution['name'] == 'trunk':
- print MESSAGE
- if solution.get('custom_vars', {}).get('root_dir'):
- print ('4. Optional: Remove your "root_dir" entry from the '
- 'custom_vars dictionary of the solution.')
-
- # Remove the gclient cache file to avoid an error on the next sync.
- entries_file = os.path.join(SOLUTION_ROOT_DIR, '.gclient_entries')
- if os.path.exists(entries_file):
- os.unlink(entries_file)
- return 1
- return 0
- except Exception as e:
- print >> sys.stderr, "Error while parsing .gclient: ", e
- return 1
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « DEPS ('k') | cleanup_links.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698