me.fier.de/pack

12 lines
308 B
Plaintext
Raw Normal View History

2023-11-18 12:07:57 +00:00
#!/usr/bin/env bash
set -e
DIR="$(dirname "$(realpath "$BASH_SOURCE")")"
source app source
archiveFile="$de_distro.tar.gz"
cd "$DIR"
if [ -f "$archiveFile" ]; then rm "$archiveFile"; fi
cd ".."
if [ -f "$archiveFile" ]; then rm "$archiveFile"; fi
tar -czf "$archiveFile" -C "$DIR" .
mv "$archiveFile" "$DIR"