/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include #include #include "tensorflow/c/c_api.h" int main(int argc, char** argv) { std::string tmpl(R"EOF( 4.0.0 org.tensorflow libtensorflow {{TENSORFLOW_VERSION}} jar tensorflow https://www.tensorflow.org 2015 The Apache Software License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0.txt repo https://github.com/tensorflow/tensorflow.git git@github.com:tensorflow/tensorflow.git scm:git:https://github.com/tensorflow/tensorflow.git )EOF"); const std::string var("{{TENSORFLOW_VERSION}}"); const std::string val(TF_Version()); for (size_t pos = tmpl.find(var); pos != std::string::npos; pos = tmpl.find(var)) { tmpl.replace(pos, var.size(), val); } std::cout << tmpl; return 0; }