← Files MOOS-IvP SkillsARCHIVED FILE
skills/moos-ivp-mission-builder/assets/baseline-two-vehicle/clean.sh
1.15 KB · Oct 2, 2026 · 00:34 UTC
#!/bin/bash
#--------------------------------------------------------------
# Script: clean.sh
# Author: Author Name
#--------------------------------------------------------------
# Part 1: Declare global var defaults
#--------------------------------------------------------------
VERBOSE=""
#--------------------------------------------------------------
# Part 2: Check for and handle command-line arguments
#--------------------------------------------------------------
for ARGI; do
if [ "${ARGI}" = "--help" -o "${ARGI}" = "-h" ]; then
echo "clean.sh [OPTIONS]"
echo " --verbose, -v"
echo " --help, -h"
exit 0
elif [ "${ARGI}" = "--verbose" -o "${ARGI}" = "-v" ]; then
VERBOSE="-v"
else
echo "clean.sh: Bad Arg:[$ARGI]. Exit Code 1."
exit 1
fi
done
#--------------------------------------------------------------
# Part 3: Remove generated files and logs
#--------------------------------------------------------------
if [ "${VERBOSE}" = "-v" ]; then
echo "Cleaning: $PWD"
fi
rm -rf $VERBOSE MOOSLog_* XLOG_* LOG_*
rm -f $VERBOSE *~ targ_* tmp_* *.moosx *.bhvx
rm -f $VERBOSE .LastOpenedMOOSLogDirectory .mem_info*
SHA-256: 10024443ddc387754402c281c011598b7258d7fc58f25d117dd6a1ec24c72757