File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 6
6
# 3. Generate size tables for inclusion into tutorial doc
7
7
# 4. Regenerate docs
8
8
9
+ CURDIR=` pwd`
10
+ SCRIPT=$( readlink -f " $0 " )
11
+ MAKEDIR=$( dirname " $SCRIPT " )
12
+ BASEDIR=$MAKEDIR /..
13
+
9
14
echo " Build all samples for Arduino API"
10
- cd tuto-samples/arduino
15
+ cd $BASEDIR / tuto-samples/arduino
11
16
./build-samples | ./stats.py > sizes.txt
12
- cd ../..
13
17
14
18
echo " Build all samples for FastArduino"
15
- cd tuto-samples/fastarduino
19
+ cd $BASEDIR / tuto-samples/fastarduino
16
20
./build-samples 2> errors| ./stats.py > sizes.txt
17
- cd ../..
18
21
19
22
# check if error found, then abort
20
- grep " Error" tuto-samples/fastarduino/errors
23
+ cd $CURDIR
24
+ grep " Error" $BASEDIR /tuto-samples/fastarduino/errors
21
25
if [ $? -ne 1 ]; then
22
26
echo " Error occurred, aborting."
23
27
exit 1
24
28
fi
25
29
26
30
# Generate size tables
27
31
echo " Generate size data sheets"
28
- . /gen-sample-size-tables.py tuto-samples/arduino/sizes.txt tuto-samples/fastarduino/sizes.txt samples-list.txt > tuto-samples/tables.txt
32
+ $MAKEDIR /gen-sample-size-tables.py $BASEDIR / tuto-samples/arduino/sizes.txt $BASEDIR / tuto-samples/fastarduino/sizes.txt $MAKEDIR / samples-list.txt > $BASEDIR / tuto-samples/tables.txt
29
33
30
34
echo " Generate docs"
35
+ cd $BASEDIR
31
36
make doco
37
+ cd $CURDIR
You can’t perform that action at this time.
0 commit comments