aboutsummaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-01-11 18:16:05 -0500
committerMarti Bolivar <mbolivar@leaflabs.com>2011-01-13 00:10:06 -0500
commita9b2d70bc7799ca96c1673b18fe3012b1a4dd329 (patch)
treef5ce5ec7908683134cc41b17e3ba6109921d31b6 /support
parent82077200e036c1f12d885fabbcbd95eb4bfa415b (diff)
downloadlibrambutan-a9b2d70bc7799ca96c1673b18fe3012b1a4dd329.tar.gz
librambutan-a9b2d70bc7799ca96c1673b18fe3012b1a4dd329.zip
updating copy-to-ide script for more convenient IDE compilation
Diffstat (limited to 'support')
-rwxr-xr-xsupport/scripts/copy-to-ide18
1 files changed, 11 insertions, 7 deletions
diff --git a/support/scripts/copy-to-ide b/support/scripts/copy-to-ide
index 6f8d5f3..301126d 100755
--- a/support/scripts/copy-to-ide
+++ b/support/scripts/copy-to-ide
@@ -7,6 +7,7 @@ DEST=$1
DEST_REF=$DEST/build/shared/reference
DEST_CORES=$DEST/hardware/leaflabs/cores/maple
+DEST_LIBS=$DEST/libraries
LMAPLE_SRC="LICENSE
./libmaple/*.h
@@ -38,19 +39,22 @@ then
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
+echo Copying libmaple source
+rm -rf $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
+echo Copying over libraries
+cp -R libraries/* $DEST_LIBS
+
# docs
echo Deleting old reference directory contents
-rm -r $DEST_REF/*
+rm -rf $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 Rebuilding documentation
+( cd $LMAPLE_DOCS; doxygen && make clean 2>/dev/null 1>/dev/null && make html )
echo Copying over documentation
cp -R $LMAPLE_DOCS_BUILD/* $DEST_REF
-echo
-echo "Done. Handle libraries manually!"
+
+echo Done.