迁移分支
This commit is contained in:
37
missions/s1_alpha/clean.sh
Executable file
37
missions/s1_alpha/clean.sh
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
#--------------------------------------------------------------
|
||||
# Script: clean.sh
|
||||
# Author: Michael Benjamin
|
||||
# Date: June 2020
|
||||
#----------------------------------------------------------
|
||||
# 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 [SWITCHES] "
|
||||
echo " --verbose "
|
||||
echo " --help, -h "
|
||||
exit 0;
|
||||
elif [ "${ARGI}" = "--verbose" -o "${ARGI}" = "-v" ] ; then
|
||||
VERBOSE="-v"
|
||||
else
|
||||
echo "clean.sh: Bad Arg:" $ARGI
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
#-------------------------------------------------------
|
||||
# Part 2: Do the cleaning!
|
||||
#-------------------------------------------------------
|
||||
if [ "${VERBOSE}" = "-v" ]; then
|
||||
echo "Cleaning: $PWD"
|
||||
fi
|
||||
rm -rf $VERBOSE MOOSLog_* XLOG_* LOG_*
|
||||
rm -f $VERBOSE *~ *.moos++
|
||||
rm -f $VERBOSE targ_*
|
||||
rm -f $VERBOSE .LastOpenedMOOSLogDirectory
|
||||
Reference in New Issue
Block a user