add an initial version of WPILib
This is our commit 24ccb7836abaa36b0e913474c818da4b6ae7bc9a which
corresponds with FPGA image v23.
Change-Id: I25b999bbcef39aaea6132562c80360d87780b8c3
diff --git a/aos/externals/allwpilib/sync.sh b/aos/externals/allwpilib/sync.sh
new file mode 100755
index 0000000..8e05233
--- /dev/null
+++ b/aos/externals/allwpilib/sync.sh
@@ -0,0 +1,20 @@
+#!/bin/bash -e
+
+# This script copies the correct directories over from an allwpilib git
+# repository (which needs to have a working tree).
+# THIS WILL ERASE ANY LOCAL CHANGES TO THE WPILIB SOURCES!
+
+# Takes 1 argument: the folder to copy from.
+
+cd $(dirname $0)
+
+SOURCE=$1
+DIRS="wpilibc hal ni-libraries"
+
+[ -n "${SOURCE}" ] || ( echo "Need a directory to sync from!" ; exit 1 )
+[ -d "${SOURCE}" ] || ( echo "${SOURCE} is not a directory. Aborting!" ; exit 1 )
+
+for dir in ${DIRS}; do
+ [ -d ${dir} ] && rm -r ${dir}
+ cp -r ${SOURCE}/${dir} ./
+done