2014-10-04 00:46:40 +02:00
|
|
|
#!/bin/bash
|
2014-11-18 19:20:53 +01:00
|
|
|
#
|
2014-10-04 15:41:22 +02:00
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2014-10-04 00:46:40 +02:00
|
|
|
|
2014-10-08 13:14:28 +02:00
|
|
|
version=@version@
|
|
|
|
|
2014-11-13 16:31:15 +01:00
|
|
|
[[ -r @libdir@/util-msg.sh ]] && source @libdir@/util-msg.sh
|
|
|
|
[[ -r @libdir@/util.sh ]] && source @libdir@/util.sh
|
2014-10-04 00:46:40 +02:00
|
|
|
|
2014-11-13 13:33:38 +01:00
|
|
|
load_vars "$HOME/.makepkg.conf"
|
|
|
|
load_vars /etc/makepkg.conf
|
2014-10-04 00:46:40 +02:00
|
|
|
|
|
|
|
if [ ! -e "$1" ]; then
|
2014-10-04 21:50:00 +02:00
|
|
|
error "Package '$1' does not exists!"
|
2014-10-04 00:46:40 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
msg "Signing package '$1' with key ${GPGKEY}..."
|
|
|
|
gpg --detach-sign --use-agent -u "${GPGKEY}" "$1"
|