summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Armstrong Skomra <skomra@gmail.com>2018-03-19 14:28:19 -0700
committerAaron Armstrong Skomra <skomra@gmail.com>2018-03-26 12:11:19 -0700
commit11451194e36fc3ae78d5d908310c4f7d09fc783c (patch)
tree553853099d62425b28c7ff6c4fa6ef0e9482b6cd
parent9d83956c2aa72b9d8744fa57e28ba5fe7f1af0f4 (diff)
downloadxf86-input-wacom-11451194e36fc3ae78d5d908310c4f7d09fc783c.tar.gz
release.sh: bugfixes
1. Use correct filename variable (tarbz2 not tarball). 2. Insert spaces into heredoc to make links work for Gmail users. 3. The script greps the module url to see if it contains an approved repository. The first update to the release script contained a list of many approved repositories. Subsequent updates during the review process had these extra repositories removed. (git update-index --assume-unchanged release.sh can be used to temporarily use a different repository.) That second change removed -e "linuxwacom/.*" (Github) instead of -e "/linuxwacom/.*" (Sourceforge). Remove the slash which is not found in the Github path. 4. Remove the language about xorg, mesa, etc. from error message. 5. Correct release.sh script documentation. The release.sh script no longer has a `--user` option. The username is now provided as a required argument of the `--github` and `--sourceforge` options. Note that when using `--github`, a personal access token may need to be appended to the username with a colon if two-factor auth is used. Fixes: 4c17c6a0dd ("Update release.sh script from Xorg") in the tags. Fixes: 32c065ae02 ("add Github to release.sh script") Signed-off-by: Aaron Armstrong Skomra <skomra@gmail.com> Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
-rwxr-xr-xrelease.sh33
1 files changed, 17 insertions, 16 deletions
diff --git a/release.sh b/release.sh
index d082b38..e2bff1f 100755
--- a/release.sh
+++ b/release.sh
@@ -264,10 +264,10 @@ RELEASE
cat <<RELEASE
$DL_URL
-MD5: `$MD5SUM $tarball`
-SHA1: `$SHA1SUM $tarball`
-SHA256: `$SHA256SUM $tarball`
-PGP: $PGP_URL
+ MD5: `$MD5SUM $tarbz2`
+ SHA1: `$SHA1SUM $tarbz2`
+ SHA256: `$SHA256SUM $tarbz2`
+ PGP: $PGP_URL
RELEASE
}
@@ -376,12 +376,12 @@ get_section() {
module_url=`echo $module_url | cut -d'/' -f3,4`
else
# The look for mesa, xcb, etc...
- module_url=`echo "$full_module_url" | $GREP -o -e "/linuxwacom/.*"`
+ module_url=`echo "$full_module_url" | $GREP -o -e "linuxwacom/.*"`
if [ $? -eq 0 ]; then
module_url=`echo $module_url | cut -d'/' -f2,3`
else
echo "Error: unable to locate a valid project url from \"$full_module_url\"."
- echo "Cannot establish url as one of linuxwacom, xorg, mesa, xcb, xf86-video-nouveau, xkeyboard-config or wayland"
+ echo "Cannot establish url as linuxwacom"
cd $top_src
return 1
fi
@@ -717,15 +717,16 @@ Usage: $basename [options] path...
Where "path" is a relative path to a git module, including '.'.
Options:
- --dist make 'dist' instead of 'distcheck'; use with caution
- --distcheck Default, ignored for compatibility
- --dry-run Does everything except tagging and uploading tarballs
- --force Force overwriting an existing release
- --help Display this help and exit successfully
- --modfile <file> Release the git modules specified in <file>
- --moduleset <file> The jhbuild moduleset full pathname to be updated
- --no-quit Do not quit after error; just print error message
- --user <name>@ Username of your fdo account if not configured in ssh
+ --dist make 'dist' instead of 'distcheck'; use with caution
+ --distcheck Default, ignored for compatibility
+ --dry-run Does everything except tagging and uploading tarballs
+ --force Force overwriting an existing release
+ --help Display this help and exit successfully
+ --modfile <file> Release the git modules specified in <file>
+ --moduleset <file> The jhbuild moduleset full pathname to be updated
+ --no-quit Do not quit after error; just print error message
+ --github <name[:pat]> Release project to Github with username / token
+ --sourceforge <name>@ Release project to Sourceforge with username
Environment variables defined by the "make" program and used by release.sh:
MAKE The name of the make command [make]
@@ -810,7 +811,7 @@ do
--no-quit)
NO_QUIT=yes
;;
- # Github username. Optional. Append colon and Personali
+ # Github username. Optional. Append colon and Personal
# Access Token to username if 2FA is enabled on the user
# account doing the release
--github)