aboutsummaryrefslogtreecommitdiffstats
path: root/support/scripts/copy-to-ide
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-12-15 19:17:55 -0500
committerMarti Bolivar <mbolivar@mit.edu>2010-12-15 19:17:55 -0500
commit07fa40623307ea474a775d6f9be5ce8afd783f23 (patch)
tree2d058abab0811b8afeeb76ab789b84e8cfb2a081 /support/scripts/copy-to-ide
parentd744fb826f4a6d6ce560f3b78f2e63a1f9666d9e (diff)
downloadlibrambutan-07fa40623307ea474a775d6f9be5ce8afd783f23.tar.gz
librambutan-07fa40623307ea474a775d6f9be5ce8afd783f23.zip
0.0.9 release.
Made some changes to Servo to get it to compile from within the IDE. Also fixed a lurking broken link in the docs.
Diffstat (limited to 'support/scripts/copy-to-ide')
-rwxr-xr-xsupport/scripts/copy-to-ide34
1 files changed, 25 insertions, 9 deletions
diff --git a/support/scripts/copy-to-ide b/support/scripts/copy-to-ide
index c6b4c16..6f8d5f3 100755
--- a/support/scripts/copy-to-ide
+++ b/support/scripts/copy-to-ide
@@ -1,14 +1,17 @@
#!/bin/sh
-# This hackish script copies the necessary library files into the Maple IDE
+# This hack copies the necessary library files into the Maple IDE
# repository.
-# Change this
-DEST=`pwd`/../maple-ide-java/hardware/leaflabs/cores/maple
+DEST=$1
-FILES="LICENSE
+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
@@ -24,6 +27,8 @@ FILES="LICENSE
./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)
@@ -32,9 +37,20 @@ then
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
+# 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 "\nFinally copy the new source files!"
-cp -R $FILES $DEST
-echo "Done."
+echo
+echo "Done. Handle libraries manually!"