#!/bin/bash
# Finds Cargo's `OUT_DIR` directory from the most recent build.
#
# This requires one parameter corresponding to the target directory
# to search for the build output.
if [; then
fi
# This works by finding the most recent stamp file, which is produced by
# every lpc55 build.
#
# Note that if no stamp files exist, `ls -t` will sort the files in the
# current directory. Should fail if find returns no results.
target_dir=""
| | |