rom4x/dist.sh

17 lines
354 B
Bash
Raw Normal View History

2017-01-29 23:54:00 +00:00
#!/bin/bash
# Script to zip the built images
rm -f "romXx_dist-*.zip"
ROM4X="rom4x/iic_rom4x.bin"
ROM5X="rom5x/iic+_rom5x.bin"
2018-09-29 22:51:50 +00:00
case `uname -s` in
Linux)
FNAME="romXx_dist-`date --rfc-3339=date`.zip"
;;
*)
FNAME="romXx_dist-`date '+%Y-%M-%d'`.zip"
;;
esac
2017-01-29 23:54:00 +00:00
[ -f "${ROM4X}" ] && zip "${FNAME}" "${ROM4X}"
[ -f "${ROM5X}" ] && zip "${FNAME}" "${ROM5X}"