Created
July 14, 2015 10:17
-
-
Save azat/ae809419f12e5b90f190 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
KEY="!!XXX!!" | |
self="$(readlink -f $(dirname $0))" | |
cd "$self" | |
function package_name() | |
{ | |
dpkg -I "$@" | grep '^ Package: ' | cut -d' ' -f3- | |
} | |
function add_deb() | |
{ | |
dpkg-sig \ | |
-g '--homedir ~reprepro/.gnupg' \ | |
--sign builder \ | |
-k KEY -v "$@" | |
reprepro -Vb $PWD remove azat "$(package_name "$@")" | |
reprepro -Vb $PWD \ | |
--gnupghome ~reprepro/.gnupg \ | |
includedeb azat "$@" | |
} | |
for f; do | |
b="$(basename $f)" | |
cp "$f" "tmp/$b" | |
add_deb "tmp/$b" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment