aboutsummaryrefslogtreecommitdiffstats
path: root/support/scripts/copy-to-ide
diff options
context:
space:
mode:
authorPerry Hung <iperry@alum.mit.edu>2010-05-28 22:52:53 -0400
committerPerry Hung <iperry@alum.mit.edu>2010-05-28 22:52:53 -0400
commit1a908d88b8c288fca89b17ceea182044d82e766e (patch)
tree468e766a15058db4ca79515b5b4ef33063c50450 /support/scripts/copy-to-ide
parent643461080317191cd3897527ad39a716d4e9d64c (diff)
downloadlibrambutan-1a908d88b8c288fca89b17ceea182044d82e766e.tar.gz
librambutan-1a908d88b8c288fca89b17ceea182044d82e766e.zip
fix botched merge from linker-refactor
Diffstat (limited to 'support/scripts/copy-to-ide')
-rwxr-xr-xsupport/scripts/copy-to-ide38
1 files changed, 38 insertions, 0 deletions
diff --git a/support/scripts/copy-to-ide b/support/scripts/copy-to-ide
new file mode 100755
index 0000000..2af1620
--- /dev/null
+++ b/support/scripts/copy-to-ide
@@ -0,0 +1,38 @@
+#!/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
+ ./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"
+
+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."