#! /bin/bash 
# Last edited on 2018-12-17 22:48:49 by stolfilocal


# Packages microscope-UFF file

tag="`date '+%Y-%m-%d-%H%M'`"
echo "version = ${tag}"

( cd arduino && \
  tar -czvf ${tag}-muff-firmware-js.tgz \
    --exclude='*~' \
    --exclude='*.o' \
    --exclude='*.ho' \
    --exclude='*.a' \
    --exclude='JUNK' \
    muff_firmware \
)

( cd python/microscope-uff && \
  tar -cvzf  ${tag}-muff-capture-py-js.tgz \
   --exclude='*~' \
    --exclude='*.o' \
    --exclude='*.ho' \
    --exclude='*.a' \
    --exclude='JUNK' \
    muff_capture \
)
