diff options
author | Marti Bolivar <mbolivar@mit.edu> | 2010-12-21 10:27:37 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@mit.edu> | 2010-12-21 10:27:37 -0500 |
commit | c45bccad44187da27505cf5808424e709e3f54a1 (patch) | |
tree | 18a459a50f8d0551ba046e30462c93999d982725 /support/scripts | |
parent | 84fd2532a7f23d20354ff590790b3f892cb7e7d7 (diff) | |
parent | d5ad2a27f4e69e6cc9324331945937c983c30366 (diff) | |
download | librambutan-c45bccad44187da27505cf5808424e709e3f54a1.tar.gz librambutan-c45bccad44187da27505cf5808424e709e3f54a1.zip |
Merge branch 'master' into debug-serialusb.
Chose debug-serialusb version in cases of conflict.
Conflicts:
libmaple/usb/usb_callbacks.c
Diffstat (limited to 'support/scripts')
-rwxr-xr-x | support/scripts/copy-to-ide | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/support/scripts/copy-to-ide b/support/scripts/copy-to-ide index 5bf52a4..6f8d5f3 100755 --- a/support/scripts/copy-to-ide +++ b/support/scripts/copy-to-ide @@ -1,16 +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/hardware/leaflabs/cores/maple/ +DEST=$1 -ARCH=`uname -a` +DEST_REF=$DEST/build/shared/reference +DEST_CORES=$DEST/hardware/leaflabs/cores/maple -FILES="LICENSE +LMAPLE_SRC="LICENSE ./libmaple/*.h ./libmaple/*.c + ./libmaple/*.S ./libmaple/usb/*.h ./libmaple/usb/*.c ./libmaple/usb/usb_lib/*.h @@ -21,11 +22,13 @@ FILES="LICENSE ./wirish/*.cpp ./wirish/comm/*.cpp ./wirish/comm/*.h - ./support/ld/maple/ - ./support/ld/maple_native/ + ./support/ld/maple + ./support/ld/maple_native ./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) @@ -34,9 +37,20 @@ then exit -1 fi -echo "Then delete the old files..." -rm -r $DEST/*.c $DEST/*.cpp $DEST/*.h $DEST/*.cxx $DEST/*.ld $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 -echo "Finally copy the new source files!" -cp -r $FILES $DEST -echo "Done." +# 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 +echo "Done. Handle libraries manually!" |