-
Notifications
You must be signed in to change notification settings - Fork 3
/
bootstrap.sh
executable file
·38 lines (33 loc) · 942 Bytes
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
function indent {
cat | sort | sed 's/^/ "/' | sed 's/$/"/'
}
function indentAndDir {
cat | sort | sed 's/^/ "${CMAKE_CURRENT_LIST_DIR}\//' | sed 's/$/"/'
}
function gen_file_lists {
echo "# Auto-generated by bootstrap.sh"
echo "set(graph_canon_INCLUDE_FILES"
find include -iname "*.hpp" | indentAndDir
echo ")"
echo ""
echo "set(graph_canon_TEST_FILES"
find test -iname "*.cpp" | grep -v cmake | sed "s/^test\/\(.*\)\.cpp$/\1/" | indent
echo ")"
echo ""
echo "set(graph_canon_EXAMPLE_FILES"
find examples -iname "*.cpp" | sed "s/^examples\/\(.*\)\.cpp$/\1/" | indent
echo ")"
echo ""
}
echo "VERSION"
git describe --tags --always | sed -e "s/^v//" -e "s/-g.*$//" -e "s/-/.0./" > VERSION
cat VERSION
echo "CMakeFiles.txt"
gen_file_lists > CMakeFiles.txt
echo "Docs"
doc/makeDocs.sh .
echo "Recursing in external/perm_group"
echo "--------------------------------"
cd external/perm_group
./bootstrap.sh