#!/usr/bin/env bash # Build a transferable tarball of z13-memory-profiles set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" NAME="z13Profiler" VERSION="1.0.0" OUT="$(cd "${ROOT}/.." && pwd)/${NAME}-${VERSION}.tar.gz" cd "${ROOT}/.." tar -czf "${OUT}" \ --exclude='*.tar.gz' \ --exclude='.git' \ "${NAME}/" echo "Created: ${OUT}" echo "" echo "Transfer to Z13 (USB, scp, etc.), then on the tablet:" echo " tar -xzf ${NAME}-${VERSION}.tar.gz" echo " cd ${NAME}" echo " ./install.sh" echo " z13-memory-profiles"