blob: 6f8d5f3601b49192484a34aa589907bd5f4f60ed (
plain)
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
|
#!/bin/sh
# This hack copies the necessary library files into the Maple IDE
# repository.
DEST=$1
DEST_REF=$DEST/build/shared/reference
DEST_CORES=$DEST/hardware/leaflabs/cores/maple
LMAPLE_SRC="LICENSE
./libmaple/*.h
./libmaple/*.c
./libmaple/*.S
./libmaple/usb/*.h
./libmaple/usb/*.c
./libmaple/usb/usb_lib/*.h
./libmaple/usb/usb_lib/*.c
./wirish/*.h
./wirish/*.c
./wirish/main.cxx
./wirish/*.cpp
./wirish/comm/*.cpp
./wirish/comm/*.h
./support/ld/maple
./support/ld/maple_native
./support/ld/libcs3-lanchon-stm32.a
./support/ld/names.inc"
LMAPLE_DOCS=./docs
LMAPLE_DOCS_BUILD=$LMAPLE_DOCS/build/html
echo "First make sure DEST exists: $DEST"
if !(test -d $DEST)
then
echo "Nope! Make sure you're doing this right?"
exit -1
fi
# source
echo Handling libmaple source
rm -r $DEST_CORES/*.c $DEST_CORES/*.cpp $DEST_CORES/*.h $DEST_CORES/*.cxx $DEST_CORES/*.inc $DEST_CORES/*.a $DEST_CORES/*.S $DEST_CORES/maple $DEST_CORES/maple_native
cp -R $LMAPLE_SRC $DEST_CORES
# docs
echo Deleting old reference directory contents
rm -r $DEST_REF/*
# echo "\nRebuilding documentation"
# (cd $LMAPLE_DOCS; doxygen 2>/dev/null 1>/dev/null && make clean 2>/dev/null 1>/dev/null && make html 2>&1 1>/dev/null)
echo Copying over documentation
cp -R $LMAPLE_DOCS_BUILD/* $DEST_REF
echo
echo "Done. Handle libraries manually!"
|