-
Notifications
You must be signed in to change notification settings - Fork 1
/
gen_lists.sh
executable file
·71 lines (57 loc) · 1.4 KB
/
gen_lists.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
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
FILE="build/sources.list"
echo -n 'libdsscore_a_SOURCES = ' > $FILE
for f in `find src | egrep '\.(cpp?|h)$' | egrep -v '(messages|build_info.h)' | sort`
do
if (test -f $f); then
echo " \\" >> $FILE
echo -n ' ../' >>$FILE
echo -n $f >> $FILE
fi
done
echo >> $FILE
echo >> $FILE
echo -n "libcivetweb_a_SOURCES =" >> $FILE
for f in `find external/civetweb | egrep '\.(c?|h|inl)$' | sort`
do
if (test -f $f); then
echo " \\" >> $FILE
echo -n ' ../' >>$FILE
echo -n $f >> $FILE
fi
done
echo >> $FILE
echo >> $FILE
echo -n "libunix_a_SOURCES =" >> $FILE
for f in `find unix | egrep '\.(cpp?|h)$' | sort`
do
if (test -f $f); then
echo " \\" >> $FILE
echo -n ' ../' >>$FILE
echo -n $f >> $FILE
fi
done
echo >> $FILE
echo >> $FILE
echo -n "dsstests_SOURCES =" >> $FILE
for f in `find tests | egrep '\.(cpp?|h)$' | egrep -v '(dssimtest.cpp)'| sort`
do
if (test -f $f); then
echo " \\" >> $FILE
echo -n ' ../' >>$FILE
echo -n $f >> $FILE
fi
done
echo >> $FILE
echo >> $FILE
IMAGES_FILE=data/images.list
echo -n "dist_dssdataimages_DATA = " > $IMAGES_FILE
for f in `find data/images | egrep '\.(png)$' | sort`
do
if (test -f $f); then
echo " \\" >> $IMAGES_FILE
echo -n ' ../' >>$IMAGES_FILE
echo -n $f >> $IMAGES_FILE
fi
done
echo >> $IMAGES_FILE
echo >> $IMAGES_FILE