1#!/usr/bin/env python
2#
3# Copyright 2016 Google Inc.
4#
5# Use of this source code is governed by a BSD-style license that can be
6# found in the LICENSE file.
7
8
9"""Create the asset."""
10
11
12import argparse
13import shutil
14import sys
15import os
16
17
18
19def create_asset(target_dir, sdk_path):
20  """Create the asset."""
21  shutil.copytree(sdk_path, target_dir)
22
23
24def main():
25  if 'linux' not in sys.platform:
26    print >> sys.stderr, 'This script only runs on Linux.'
27    sys.exit(1)
28  parser = argparse.ArgumentParser()
29  parser.add_argument('--target_dir', '-t', required=True)
30  parser.add_argument('--sdk_path', '-s', required=True)
31  args = parser.parse_args()
32  create_asset(args.target_dir, args.sdk_path)
33
34
35if __name__ == '__main__':
36  main()
37