Skip to content

Instantly share code, notes, and snippets.

@saitodev
Created September 27, 2016 14:18
Show Gist options
  • Save saitodev/3cde48806a32272962899693700d9669 to your computer and use it in GitHub Desktop.
Save saitodev/3cde48806a32272962899693700d9669 to your computer and use it in GitHub Desktop.
#!/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