提交 b3accaa6 编写于 作者: Y Yanzhan Yang 提交者: GitHub

1. add include auto generation script. 2. add private repo script. (#1735)

上级 937d7bd6
#!/usr/bin/env
include1=$1
include2=$2
root=$(pwd)
cd $include1
list1=$(find . -name "*" | sort -n | uniq)
cd $root
echo "$list1" > include1.list
cd $include2
list2=$(find . -name "*" | sort -n | uniq)
cd $root
echo "$list2" > include2.list
diff include1.list include2.list
if [ "$?" = "0" ]
then
echo "no diff"
else
echo "has diff"
fi
rm include1.list
rm include2.list
echo "done"
#include "io/paddle_mobile.h"
#include "io/paddle_inference_api.h"
int main() {
return 0;
}
import sys
output = ""
for line in sys.stdin:
line.strip()
tag = "\\"
if tag in line:
index = line.index("\\")
line = line[:index]
output += line
for line in output.split(" "):
line = line.strip()
if "/Applications" in line:
continue
if len(line) <= 0:
continue
if not line.endswith(".h"):
continue
if not line.startswith("../../../src/"):
continue
print(line[len("../../../src/"):])
#!/usr/bin/env bash
rm -rf include
mkdir include
g++ -I../../../src/ -M main.cpp | python parse.py | xargs -I % sh -c "dirname %" | sort | uniq | xargs -I % sh -c "mkdir -p include/%"
g++ -I../../../src/ -M main.cpp | python parse.py | xargs -I % sh -c "cp ../../../src/% include/%"
#!/usr/bin/env bash
git clone https://icode.baidu.com/baidu/bdbox/paddle-mobile-private-repo/
cp -R paddle-mobile-private-repo/paddle-mobile-metallib ../../metal/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册