blob: bd531e21204ad8e2f5470d2b06882937759740fe (
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
|
#!/bin/sh
# This hackish script copies the necessary library files into the Maple IDE
# repository.
# Change this
DEST=`pwd`/../maple-ide/hardware/leaflabs/cores/maple/
ARCH=`uname -a`
FILES="LICENSE
./libmaple/*.h
./libmaple/*.c
./wirish/*.h
./wirish/*.c
./wirish/main.cxx
./wirish/*.cpp
./wirish/comm/*.cpp
./wirish/comm/*.h"
echo "First make sure DEST exists: $DEST"
if !(test -d $DEST/lanchon-stm32)
then
mkdir $DEST/lanchon-stm32
fi
echo "Then copy over linker files..."
cp stm32conf/* $DEST
cp stm32conf/lanchon-stm32/* $DEST/lanchon-stm32
echo "Finally delete the old and copy the new source files!"
rm $DEST/*.c $DEST/*.cpp $DEST/*.h $DEST/*.cxx
cp $FILES $DEST
echo "Done."
|