Created
September 27, 2016 14:18
-
-
Save saitodev/3cde48806a32272962899693700d9669 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eu | |
# -*- coding: utf-8 -*- | |
HEADER_DIR=/tmp/tensorflow/include | |
if [ ! -e $HEADER_DIR ]; | |
then | |
mkdir -p $HEADER_DIR | |
fi | |
find tensorflow/core -follow -type f -name "*.h" -exec cp --parents {} $HEADER_DIR \; | |
find tensorflow/cc -follow -type f -name "*.h" -exec cp --parents {} $HEADER_DIR \; | |
find tensorflow/c -follow -type f -name "*.h" -exec cp --parents {} $HEADER_DIR \; | |
find third_party/eigen3 -follow -type f -exec cp --parents {} $HEADER_DIR \; | |
pushd bazel-genfiles | |
find tensorflow -follow -type f -name "*.h" -exec cp --parents {} $HEADER_DIR \; | |
popd | |
pushd bazel-tensorflow/external/protobuf/src | |
find google -follow -type f -name "*.h" -exec cp --parents {} $HEADER_DIR \; | |
popd | |
pushd bazel-tensorflow/external/eigen_archive | |
find Eigen -follow -type f -exec cp --parents {} $HEADER_DIR \; | |
find unsupported -follow -type f -exec cp --parents {} $HEADER_DIR \; | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment