brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | all: make.rb WPILib.a |
| 2 | #ruby make.rb |
| 3 | clean: |
| 4 | rm -f *.out WPILib/*.o WPILib/*/*.o *.d |
| 5 | |
| 6 | deploy: all |
| 7 | ncftpput robot /ni-rt/system/ wpilib.out |
| 8 | |
| 9 | wpilibupdate.exe: |
| 10 | wget http://firstforge.wpi.edu/sf/frs/do/downloadFile/projects.wpilib/frs.2012_update_for_c.frc_update_3111/frs1405?dl=1 -O wpilibupdate.exe |
| 11 | |
| 12 | WPILib: wpilibupdate.exe |
| 13 | mkdir wpilibinstaller |
| 14 | cd wpilibinstaller |
| 15 | unzip wpilibupdate.exe -d wpilibinstaller/ | tee wpilibinstaller/unziplog.txt |
| 16 | cat wpilibinstaller/unziplog.txt | grep "inflating: wpilibinstaller/.*\.zip" | sed "s/.*\(wpilibinstaller\/.*\.zip\).*/\1/" | xargs -I '{}' cp '{}' ./ |
| 17 | #cat wpilibinstaller/unziplog.txt | grep "inflating: wpilibinstaller/.*\.zip" | sed "s/.*wpilibinstaller\/\(.*\.zip\).*/\1/" | xargs -I '{}' ln -s '{}' ./WPILib.zip |
| 18 | unzip -a WPILib*.zip |
| 19 | rm -r wpilibinstaller |
| 20 | rm -f wpilib_page1.url wpilib_page2.url wpilib_page3.url |
| 21 | |
| 22 | WPILib.a: wpilibupdate.exe |
| 23 | unzip wpilibupdate.exe |
| 24 | cp vxworks-6.3/target/lib/WPILib.a ./ |
| 25 | |