diff options
| author | Bryce Harrington <bryce@bryceharrington.org> | 2016-01-21 05:41:31 +0000 |
|---|---|---|
| committer | bryce <bryce@bryceharrington.org> | 2016-01-21 05:41:31 +0000 |
| commit | f712acb6bd859e7dc168a63512386b385e3fed09 (patch) | |
| tree | 6d0c4fe113481277ea958daeeedd82c4b3dcca2a /packaging | |
| parent | packaging: Add make_dist() function to generate the tarballs (diff) | |
| download | inkscape-f712acb6bd859e7dc168a63512386b385e3fed09.tar.gz inkscape-f712acb6bd859e7dc168a63512386b385e3fed09.zip | |
packaging: Add usage and support for MAKEFLAGS
(bzr r14614)
Diffstat (limited to 'packaging')
| -rwxr-xr-x | packaging/release-sign-tarballs | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/packaging/release-sign-tarballs b/packaging/release-sign-tarballs index fd76bec4c..2236d4357 100755 --- a/packaging/release-sign-tarballs +++ b/packaging/release-sign-tarballs @@ -5,6 +5,7 @@ VERSION="0.92" PKG_NAME="inkscape" LIST_TO="inkscape-announce@lists.sf.net" LIST_CC="inkscape-devel@lists.sf.net" +VCS_SYSTEM="bzr" # Locate Dependencies #------------------------------------------------------------------------------ @@ -39,6 +40,26 @@ fi #------------------------------------------------------------------------------ +usage() { + basename="`expr "//$0" : '.*/\([^/]*\)'`" + cat <<HELP + +Usage: $basename [options] path... + +Where "path" is a relative path to a ${VCS_SYSTEM} module, including '.'. + +Options: + (none) + +Environment variables: + MAKE: The name of the make command [make] + MAKEFLAGS: Options to pass to all \$(MAKE) invocations [] + +HELP +} + +#------------------------------------------------------------------------------ + check_local_changes() { # TODO return 1 @@ -50,9 +71,12 @@ check_local_changes() { # Create the package distribution # Return 0 on success, 1 on fail make_dist() { - if [ ! -d .bzr ]; then + if [ $VCS_SYSTEM = "bzr" ] && [ ! -d .bzr ]; then echo "Error: There is no bzr repository here: $(pwd)" return 1 + else + echo "Error: Unrecognized version control '$VCS_SYSTEM'." + return 1 fi # Change to an out-of-source build directory @@ -86,7 +110,7 @@ make_dist() { fi echo "Info: running 'make $MAKE_DIST_CMD' to create tarballs:" - ${MAKE} ${MAKE_DIST_CMD} > /dev/null + ${MAKE} ${MAKEFLAGS} ${MAKE_DIST_CMD} > /dev/null if [ $? -ne 0 ]; then echo "Error: '${MAKE} ${MAKEFLAGS} ${MAKE_DIST_CMD}' failed." cd $top_src |
