blob: c6b4c1613c3f203fcb16588635168acbd89452d7 (
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
|
#!/bin/sh
# This hackish script copies the necessary library files into the Maple IDE
# repository.
# Change this
DEST=`pwd`/../maple-ide-java/hardware/leaflabs/cores/maple
FILES="LICENSE
./libmaple/*.h
./libmaple/*.c
./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"
echo "First make sure DEST exists: $DEST"
if !(test -d $DEST)
then
echo "Nope! Make sure you're doing this right?"
exit -1
fi
echo "\nThen delete the old files..."
rm -r $DEST/*.c $DEST/*.cpp $DEST/*.h $DEST/*.cxx $DEST/*.inc $DEST/*.a $DEST/maple $DEST/maple_native
echo "\nFinally copy the new source files!"
cp -R $FILES $DEST
echo "Done."
|