mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2024-11-10 00:59:38 +00:00
Andrei Jiroh Halili
785f38b9a5
Including just one script from ~sircmpwn for signing release source tarballs. Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
8 lines
287 B
Bash
Executable file
8 lines
287 B
Bash
Executable file
#!/bin/sh
|
|
project="$(basename $(pwd))"
|
|
version="$(git describe)"
|
|
|
|
git archive --format=tar.gz --prefix="$project-$version/" "$version" \
|
|
>"$project-$version.tar.gz"
|
|
gpg --detach-sign "$@" --default-key 940047813E9D641C "$project-$version.tar.gz" \
|
|
>/tmp/"$project-$version".tar.gz.sig
|