From bbce730df9b43726ffe9b1cf7553b59434551306 Mon Sep 17 00:00:00 2001 From: "bungeman@google.com" Date: Fri, 9 May 2014 15:04:18 +0000 Subject: [PATCH] Add a dry-run option to gyp_skia. There are times when I want to do some low-level fiddling with the gyp command. It's nice to start with whatever the 'default' is, and it's also nice to peek behind the curtain to see what's going on. To this end, a '--dry-run' in the argument list will spit out the command to run, rather than running the command. R=epoger@google.com Review URL: https://codereview.chromium.org/278893002 git-svn-id: http://skia.googlecode.com/svn/trunk@14674 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gyp_skia | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gyp_skia b/gyp_skia index 151fa7b..66adf08 100755 --- a/gyp_skia +++ b/gyp_skia @@ -129,5 +129,9 @@ if __name__ == '__main__': print 'Updating projects from gyp files...' sys.stdout.flush() - # Off we go... - sys.exit(gyp.main(args)) + if '--dry-run' in args: + args.remove('--dry-run') + print gyp_source_dir, ' '.join(args) + else: + # Off we go... + sys.exit(gyp.main(args)) -- 2.7.4