Added option to build with short names.

master
Marcio Teixeira 7 years ago
parent c6fd5e2568
commit e7d0454f1b

@ -28,7 +28,7 @@ TAZ_TOOLHEADS="Tilapia_SingleExtruder Kanyu_Flexystruder Opah_Moarstruder Javeli
# Prints out a usage summary
#
usage() {
echo "Usage: $0 [--no-timestamps] [printer_model toolhead_name]"
echo "Usage: $0 [-s|--short-names] [--no-timestamps] [printer_model toolhead_name]"
exit
}
@ -158,6 +158,10 @@ do
MAKEOPTS="NO_TIMESTAMP=1"
shift
;;
--short-names|-s)
SHORTNAMES=1
shift
;;
--*)
usage
;;
@ -181,4 +185,8 @@ else
build_for_taz
fi
if [ $SHORTNAMES ]; then
rename 's/Marlin_(.+)_(.+)_(.+)_(.+)_(.+)_(.+).hex/Marlin_$2_$4_$5_$6.hex/' build/*
fi
build_summary

Loading…
Cancel
Save