TensorFlow: Use tmp/ instead of archive/ as temp path #83

This commit is contained in:
Michael Mayer 2019-06-26 00:17:10 +02:00
parent 84aefc1272
commit 0756167115

View file

@ -8,11 +8,12 @@ libtensorflow:
static:
env JOB_COUNT=2 ARCH=core-avx-i ./build_static.sh
archive:
mkdir -p archive/lib/
mkdir -p archive/include/tensorflow/c/eager/
cp bazel-bin/tensorflow/libtensorflow.so.$(TF_VERSION) archive/lib/libtensorflow.so
cp bazel-bin/tensorflow/libtensorflow_framework.so.$(TF_VERSION) archive/lib/libtensorflow_framework.so
cp tensorflow/c/eager/c_api.h archive/include/tensorflow/c/eager/
cp tensorflow/c/c_api.h tensorflow/c/c_api_experimental.h tensorflow/c/LICENSE archive/include/tensorflow/c/
(cd archive && tar -czf ../libtensorflow-cpu-linux-core-avx-i-$(TF_VERSION).tar.gz)
du -h libtensorflow-cpu-linux-core-avx-i-$(TF_VERSION).tar.gz
rm -rf tmp
mkdir -p tmp/lib/
mkdir -p tmp/include/tensorflow/c/eager/
cp bazel-bin/tensorflow/libtensorflow.so.$(TF_VERSION) tmp/lib/libtensorflow.so
cp bazel-bin/tensorflow/libtensorflow_framework.so.$(TF_VERSION) tmp/lib/libtensorflow_framework.so
cp tensorflow/c/eager/c_api.h tmp/include/tensorflow/c/eager/
cp tensorflow/c/c_api.h tensorflow/c/c_api_experimental.h LICENSE tmp/include/tensorflow/c/
(cd tmp && tar -czf ../libtensorflow-linux-x86_64-avx-$(TF_VERSION).tar.gz)
du -h libtensorflow-linux-x86_64-avx-$(TF_VERSION).tar.gz