This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
ecg-prog-filtered/archive.sh

12 lines
284 B
Bash
Executable file

#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-or-later
set -euo pipefail
dir="$1"
if [ ! -d "$dir" ]; then
echo "first argument must be a directory, e.g. u02" >&2
exit 1
fi
out="/tmp/ecg-${dir}-simon-bruder.zip"
git archive --format=zip master "$dir" -o "$out"
echo "$out"