blob: 039ca6ea197b01d102b2ea600698fef3c328c6fc [file] [log] [blame]
Brian Silverman100534c2015-09-07 15:51:23 -04001#!/bin/bash
2
3# This script runs doc/gyp_to_bazel for most of our code base.
4# We're skipping bot3 for now because it's under active development.
5
6set -e
7set -u
8
9run_for_folder() {
10 PYTHONPATH=${HOME}/pyyaml-3.11-prefix/lib/python3.4/site-packages/ find $1 \
11 -type d \
12 -exec bash -c '[[ -r {}/$(basename {}).gyp ]] && doc/gyp_to_bazel.py {}' \;
13 find $1 -type f \( -name '*.gyp' -or -name '*.gypi' \) \
14 -exec bash -c '[[ $(basename $(dirname {})).gyp = $(basename {}) ]] || \
15 echo Need to manually convert {} >&2' \;
16}
17
Brian Silvermanea542292015-09-13 02:24:45 -040018# Manual work on the other folders has started, so we don't want this script to
19# automatically overwrite that work.
20exit 0
21
Brian Silverman4a93ed52015-10-12 13:48:49 -040022run_for_folder bot3
23
Brian Silverman100534c2015-09-07 15:51:23 -040024run_for_folder aos
25run_for_folder frc971
26run_for_folder y2014
27run_for_folder y2015
28run_for_folder vision