modify dist.sh

This commit is contained in:
mgcaret 2018-09-29 15:51:50 -07:00
parent 8ea78bd613
commit ee1faf6cc7

View File

@ -3,7 +3,14 @@
rm -f "romXx_dist-*.zip" rm -f "romXx_dist-*.zip"
ROM4X="rom4x/iic_rom4x.bin" ROM4X="rom4x/iic_rom4x.bin"
ROM5X="rom5x/iic+_rom5x.bin" ROM5X="rom5x/iic+_rom5x.bin"
FNAME="romXx_dist-`date --rfc-3339=date`.zip" case `uname -s` in
Linux)
FNAME="romXx_dist-`date --rfc-3339=date`.zip"
;;
*)
FNAME="romXx_dist-`date '+%Y-%M-%d'`.zip"
;;
esac
[ -f "${ROM4X}" ] && zip "${FNAME}" "${ROM4X}" [ -f "${ROM4X}" ] && zip "${FNAME}" "${ROM4X}"
[ -f "${ROM5X}" ] && zip "${FNAME}" "${ROM5X}" [ -f "${ROM5X}" ] && zip "${FNAME}" "${ROM5X}"