release-sign-tarballs revision cac133768c18c89d4fccd4fc65d1a95232b51406
SIGNER="bryce@bryceharrington.org"
VERSION="0.92"
PKG_NAME="inkscape"
LIST_TO="inkscape-announce@lists.sf.net"
LIST_CC="inkscape-devel@lists.sf.net"
# Locate Dependencies
#------------------------------------------------------------------------------
# Choose which make program to use (could be gmake)
# Set the default make tarball creation command
# Choose which grep program to use (on Solaris, must be gnu grep)
if [ "x$GREP" = "x" ] ; then
else
fi
fi
# Find path for GnuPG v2
if [ "x$GPG" = "x" ] ; then
else
fi
fi
#------------------------------------------------------------------------------
# TODO
return 1
}
#------------------------------------------------------------------------------
# Function: make_dist
#
# Create the package distribution
# Return 0 on success, 1 on fail
if [ ! -d .bzr ]; then
echo "Error: There is no bzr repository here: $(pwd)"
return 1
fi
# Change to an out-of-source build directory
status_file=$(find . -name ${config_indicator} -type f)
if [ $? -ne 0 ]; then
echo "Error: Failed to locate ${config_indicator}."
echo "Has the module been configured?"
return 1
fi
echo "Error: Failed to locate ${config_indicator}, has the module been configured?"
return 1
echo "Error: More than one ${config_indicator} file was found."
echo "Please cleanup previously failed attempts at distcheck."
fi
build_dir=$(dirname ${status_file})
cd ${build_dir}
if [ $? -ne 0 ]; then
echo "Error: Failed to cd to build directory ${build_dir}."
return 1
fi
if [ $? -ne 0 ]; then
cd ${top_src}
return 1
fi
echo "Info: running 'make $MAKE_DIST_CMD' to create tarballs:"
${MAKE} ${MAKE_DIST_CMD} > /dev/null
if [ $? -ne 0 ]; then
echo "Error: '${MAKE} ${MAKEFLAGS} ${MAKE_DIST_CMD}' failed."
cd $top_src
return 1
fi
return 0
}
# Function: sign_or_fail
#------------------------------------------------------------------------------
#
# Sign the given file, if any
# Output the name of the signature generated to stdout (all other output to
# stderr)
# Return 0 on success, 1 on fail
#
if [ -n "$1" ]; then
if [ $? -ne 0 ]; then
echo "Error: failed to sign $1." >&2
return 1
fi
echo $sig
fi
return 0
}
zip="${PKG_NAME}-${VERSION}.zip"
signatures=""
if [ -e "${tarball}" ]; then
SHA256: `$SHA256SUM $tarball`
"
fi
done
if [ ${gpgsignerr} -ne 0 ]; then
echo "Error: unable to sign at least one of the tarballs."
return 1
# The tar.gz is always required
echo "Error: Unable to sign the tar.gz file."
return 2
fi
return 0;
}
# TODO: Once converted to git, enable display of shortlog
#tag_range="FIXME..FIXME"
#`git log --no-merges "$tag_range" | git shortlog`
cat <<RELEASE
Subject: [ANNOUNCE] $PKG_NAME $VERSION
To: $LIST_TO
Cc: $LIST_CC
The Inkscape community proudly announces the release of Inkscape $VERSION.
https://inkscape.org/en/download/
Inkscape is a drawing and painting tool similar to Illustrator,
CorelDraw, and Xara X, but with features, new tools, and interface style
of its own. It emphasizes the W3C standard Scalable Vector Graphics
(SVG) file format, but reads and writes a wealth of other formats
including PDF, so it is an easy complement to your other graphics and
desktop tools. Best of all, Inkscape is created *by* the community *for*
the community: Inkscape is 100% Open Source and freely available to
everyone in the world.
<INSERT DETAILS ABOUT THE RELEASE HERE>
The above barely scratches the surface of what's included in this
release. For the full scoop, please see our detailed Release Notes:
http://wiki.inkscape.org/wiki/index.php/Release_notes/$VERSION
git tag: $tag_name
$signatures
RELEASE
}
top_src=$(pwd)
generate_announce > "$tar_name.announce"
echo "Info: [ANNOUNCE] template generated in \"$tar_name.announce\" file."
echo " Please pgp sign and send it."
return 0
}