File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 10
10
# 5. Collect size information and prepare integration to doxygen tutorial size tables
11
11
# 6. Regenerate docs
12
12
13
+ CURDIR=` pwd`
14
+ MAKEDIR=$( dirname " $0 " )
15
+ BASEDIR=$MAKEDIR /..
16
+ DOCDIR=$BASEDIR /basedoc
17
+
13
18
echo " Clean up all generated code"
19
+ cd $BASEDIR
14
20
make clean-all > /dev/null 2>&1
15
21
make clean-examples-all > /dev/null 2>&1
16
22
@@ -19,7 +25,7 @@ export TARGETS="UNO LEONARDO MEGA ATtiny84 ATtiny85"
19
25
for TARGET in $TARGETS
20
26
do
21
27
echo " Target: $TARGET "
22
- make CONF=$TARGET examples 2> errors | . /stats.py > newsizes-$TARGET
28
+ make CONF=$TARGET examples 2> errors | $MAKEDIR /stats.py > newsizes-$TARGET
23
29
grep " Error" errors
24
30
# check if error found, then abort
25
31
if [ $? -ne 1 ]; then
30
36
done
31
37
32
38
echo " Generate size data sheets"
33
- . /gen-size-sheet.py new-examples-data.xlsx $TARGETS
39
+ $MAKEDIR /gen-size-sheet.py $DOCDIR / new-examples-data.xlsx $TARGETS
34
40
35
41
echo " Remove intermediate result files"
36
42
for TARGET in $TARGETS
39
45
done
40
46
41
47
echo " Compare new sizes with previous release sizes"
42
- ./compare-size-sheets.py examples-data.xlsx new-examples-data.xlsx > sizes-diff.xlsx
48
+ $MAKEDIR /compare-size-sheets.py $DOCDIR /examples-data.xlsx $DOCDIR /new-examples-data.xlsx > $DOCDIR /sizes-diff.xlsx
49
+ cd $CURDIR
Original file line number Diff line number Diff line change 16
16
def read_template ():
17
17
global ALL_EXAMPLES
18
18
global ALL_SIZES
19
- with open ("examples-list.txt" , "r" ) as handle :
19
+ with open ("make/ examples-list.txt" , "r" ) as handle :
20
20
for line in handle :
21
21
data = line .split ('\t ' )
22
22
ALL_EXAMPLES .append (data [0 ])
Original file line number Diff line number Diff line change 14
14
def read_template ():
15
15
global ALL_EXAMPLES
16
16
global ALL_SIZES
17
- with open ("examples-list.txt" , "r" ) as handle :
17
+ with open ("make/ examples-list.txt" , "r" ) as handle :
18
18
for line in handle :
19
19
data = line .split ('\t ' )
20
20
ALL_EXAMPLES .append (data [0 ])
You can’t perform that action at this time.
0 commit comments