Removed extra comments in compile.sh

This commit is contained in:
Austen Adler 2015-01-13 21:51:06 -05:00
parent a063d44046
commit fe01f82d27

View File

@ -3,21 +3,15 @@ cd /vagrant/src
INCLUDE=$(find /vagrant/src -type d|sed -e 's/^/-I/'|paste -sd\ ) INCLUDE=$(find /vagrant/src -type d|sed -e 's/^/-I/'|paste -sd\ )
TMP=$(find . -type d) TMP=$(find . -type d)
SRCS=$(find -type f -name \*.cpp|sed -e 's/\(.+\)\.cpp$/\1/') SRCS=$(find -type f -name \*.cpp|sed -e 's/\(.+\)\.cpp$/\1/')
#echo $INCLUDE
#echo $TMP
#echo $SRCS
cd;rm -rf ~/build/;mkdir -p ~/build/;cd ~/build cd;rm -rf ~/build/;mkdir -p ~/build/;cd ~/build
for DIR in $TMP;do for DIR in $TMP;do
mkdir -p $DIR mkdir -p $DIR
done done
for SRC in $SRCS;do for SRC in $SRCS;do
#echo arm-frc-linux-gnueabi-g++ -std=c++1y -I/vagrant/wpilib/include $INCLUDE -O0 -g3 -Wall -c -fmessage-length=0 -o /vagrant/src/"$SRC".o "$SRC"
echo "Compiling $(echo -n $SRC|sed -e 's/.+\/\(.+\)\.cpp//')" to "$SRC.o" echo "Compiling $(echo -n $SRC|sed -e 's/.+\/\(.+\)\.cpp//')" to "$SRC.o"
#echo arm-frc-linux-gnueabi-g++ -std=c++1y -I/vagrant/wpilib/include $INCLUDE -O0 -g3 -Wall -c -fmessage-length=0 -o "$SRC.o" "/vagrant/src/$(echo $SRC|cut -b "1 2" --complement)"
arm-frc-linux-gnueabi-g++ -std=c++1y -I/vagrant/wpilib/include $INCLUDE -O0 -g3 -Wall -c -fmessage-length=0 -o "$SRC.o" "/vagrant/src/$(echo $SRC|cut -b "1 2" --complement)"||exit 1 arm-frc-linux-gnueabi-g++ -std=c++1y -I/vagrant/wpilib/include $INCLUDE -O0 -g3 -Wall -c -fmessage-length=0 -o "$SRC.o" "/vagrant/src/$(echo $SRC|cut -b "1 2" --complement)"||exit 1
done done
COMPILED=$(find -type f -name \*.cpp.o|sed -e 's/\(.+\)\.cpp\.o$/\1/') COMPILED=$(find -type f -name \*.cpp.o|sed -e 's/\(.+\)\.cpp\.o$/\1/')
#echo $COMPILED
echo Linking echo Linking
arm-frc-linux-gnueabi-g++ -L/vagrant/wpilib/lib -Wl,-rpath,/opt/GenICam_v2_3/bin/Linux_armv7-a -o /vagrant/build/FRCUserProgram $COMPILED -lwpi arm-frc-linux-gnueabi-g++ -L/vagrant/wpilib/lib -Wl,-rpath,/opt/GenICam_v2_3/bin/Linux_armv7-a -o /vagrant/build/FRCUserProgram $COMPILED -lwpi
cd - cd -