summaryrefslogtreecommitdiff
path: root/librerelease
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2012-01-21 11:12:01 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2012-01-21 11:12:01 -0300
commit918e09f1a47dc3d23440f08a91d91d31d62dcb5a (patch)
treeeffadb1e2c76d3e06975c92516647148ed9f420a /librerelease
parent0e9e94d70a0442e2c0aebdfb282269e90d688712 (diff)
parent971e5b7d0cd614e1be3a82380ef16911f2d9cefe (diff)
Merge branch 'master' into fauno
Conflicts: fullpkg toru
Diffstat (limited to 'librerelease')
-rwxr-xr-xlibrerelease11
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 ;;