release-sign-tarballs revision 3114ead9a60b65191e92dea6c76c038c03a8f1dc
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico# Locate Dependencies
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico#------------------------------------------------------------------------------
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico# Choose which make program to use (could be gmake)
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico# Set the default make tarball creation command
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico# Choose which grep program to use (on Solaris, must be gnu grep)
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico# Find path for GnuPG v2
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico# Function: sign_or_fail
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico#------------------------------------------------------------------------------
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico# Sign the given file, if any
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico# Output the name of the signature generated to stdout (all other output to
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico# Return 0 on success, 1 on fail
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico if [ $? -ne 0 ]; then
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico if [ ${gpgsignerr} -ne 0 ]; then
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico echo "Error: unable to sign at least one of the tarballs."
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico echo "Info: [ANNOUNCE] template generated in \"$tar_name.announce\" file."