diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2012-01-21 11:12:01 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2012-01-21 11:12:01 -0300 |
commit | 918e09f1a47dc3d23440f08a91d91d31d62dcb5a (patch) | |
tree | effadb1e2c76d3e06975c92516647148ed9f420a /librerelease | |
parent | 0e9e94d70a0442e2c0aebdfb282269e90d688712 (diff) | |
parent | 971e5b7d0cd614e1be3a82380ef16911f2d9cefe (diff) |
Merge branch 'master' into fauno
Conflicts:
fullpkg
toru
Diffstat (limited to 'librerelease')
-rwxr-xr-x | librerelease | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/librerelease b/librerelease index 64f8887..f31bc3a 100755 --- a/librerelease +++ b/librerelease @@ -47,6 +47,11 @@ function list_packages { } function sign_packages { + if [ -z "${SIGEXT}" ]; then + SIGEXT=.sig + warning "Empty SIGEXT var, using default .sig" + fi + if [ -z "${GPG_AGENT_INFO}" ]; then warning "It's better to use gpg-agent to sign packages in batches" fi @@ -66,6 +71,7 @@ function sign_packages { fi fi + msg2 "Signing ${package}..." gpg --default-key "${SIGID}" --output "${package}${SIGEXT}" --detach-sig "${package}" done } @@ -83,6 +89,11 @@ function clean { find ${WORKDIR}/staging/ -type f -delete } +if [ -w / ]; then + error "Run $0 as normal user" + exit 1 +fi + while getopts 'hlcn' arg; do case $arg in h) usage; exit 0 ;; |