-
Notifications
You must be signed in to change notification settings - Fork 4
/
RUNME
executable file
·71 lines (67 loc) · 1.62 KB
/
RUNME
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/sh
#
# This is a wrapper script to build all examples and update the documents
#
. common/common.sh
SUBDIRS="\
variadic_templates \
constexpr \
decltype \
hello_world_color\
initializer_lists \
initializer_lists_with_custom_vector \
lambda \
range_based_for_loop \
range_based_for_loop_custom_begin_end \
scoped_enums \
std_bind \
std_bind_with_a_class_callback \
std_bind_with_a_method \
std_file_read \
std_for_each_and_transform \
std_forward \
std_function_and_using \
std_map_reverse_sort \
std_map_with_custom_key \
std_move \
std_multiset \
std_set \
std_shared_ptr \
std_sort_with_custom_iterators \
std_unique_ptr \
std_unique_ptr_for_file_handling \
std_unique_ptr_with_custom_deallocator \
std_unordered_map \
std_unordered_set \
std_shared_ptr_wrapper \
std_thread \
std_thread_timeout \
std_thread_timeout_template \
std_function_with_variadic_template \
std_to_string"
cp README.md.template README.md
for i in $SUBDIRS
do
echo
echo
echo
echo
echo
echo
log $i:
log "================================================="
cd $i
sh ./RUNME;
if [ $? -ne 0 ]; then
log_err "failed"
exit 1
fi
if [ ! -f example ]; then
log_err "build failed"
exit 1
fi
./example
cd ..
# Makes the main page too long:
# cat $i/README.md >> README.md
done