blob: e6fafd48c4c14fbb43e9142ffeffd41b68879cfa (
plain) (
blame)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
#!/bin/bash
usage="USAGE: $0 <full path to the NuttX directory>"
special="include/features.h"
# Get the single, required command line argument
nuttx_path=$1
if [ -z "${nuttx_path}" ]; then
echo "ERROR: Missing path to the NuttX directory"
echo $usage
exit 1
fi
# Lots of sanity checking so that we do not do anything too stupid
if [ ! -d libxx ]; then
echo "ERROR: Directory libxx does not exist in this directory"
echo " Please CD into the misc/uClibc++ directory and try again"
echo $usage
exit 1
fi
if [ ! -d include ]; then
echo "ERROR: Directory include does not exist in this directory"
echo " Please CD into the misc/uClibc++ directory and try again"
echo $usage
exit 1
fi
if [ ! -d "${nuttx_path}" ]; then
echo "ERROR: Directory ${nuttx_path} does not exist"
echo $usage
exit 1
fi
if [ ! -f "${nuttx_path}/Makefile" ]; then
echo "ERROR: No Makefile in directory ${nuttx_path}"
echo $usage
exit 1
fi
libxx_srcdir=${nuttx_path}/libxx
if [ ! -d "${libxx_srcdir}" ]; then
echo "ERROR: Directory ${libxx_srcdir} does not exist"
echo $usage
exit 1
fi
if [ ! -f "${libxx_srcdir}/Makefile" ]; then
echo "ERROR: No Makefile in directory ${libxx_srcdir}"
echo $usage
exit 1
fi
uclibc_srcdir=${libxx_srcdir}/uClibc++
if [ ! -d "${uclibc_srcdir}" ]; then
echo "ERROR: Directory ${uclibc_srcdir} does not exiss"
echo " uClibc++ has not been installed"
echo $usage
exit 1
fi
nuttx_incdir=${nuttx_path}/include
if [ ! -d "${nuttx_incdir}" ]; then
echo "ERROR: Directory ${nuttx_incdir} does not exist"
echo $usage
exit 1
fi
nuttxcxx_incdir=${nuttx_incdir}/cxx
if [ ! -d "${nuttxcxx_incdir}" ]; then
echo "ERROR: Directory ${nuttxcxx_incdir} does not exist"
echo $usage
exit 1
fi
uclibc_incdir=${nuttx_incdir}/uClibc++
if [ ! -d "${uclibc_incdir}" ]; then
echo "ERROR: Directory ${uclibc_incdir} does not exist"
echo " uClibc++ has not been installed"
echo $usage
exit 1
fi
echo "##### Comparing libxx"
filelist=`find libxx -type f`
for file in $filelist; do
diff -u $file ${nuttx_path}/${file}
done
echo ""
echo "##### Comparing include"
filelist=`find include -type f`
for file in $filelist; do
diff -u $file ${nuttx_path}/${file}
done
echo ""
echo "##### Comparing other files"
for file in $speical; do
diff -u $file ${nuttx_path}/${file}
done
|