This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository maintenancescripts. from b02a6f1 git/hooks/x2go-post-receive-close-bugs: more curly braces, quoting and backtick to $() changes. new 3c65155 git/hooks/x2go-post-receive-close-bugs: add copyright header. new bdddf6c git/hooks/x2go-post-receive-close-bugs: remove verbose variable, defined in common.sh. new 8e1db56 git/hooks/x2go-post-receive-tag-pending: use common.sh. new 11e5f3f git/hooks/x2go-post-receive-tag-pending: change tabs to spaces, add quoting and curly braces around variables in big block. new b813d7f git/hooks/x2go-post-receive-tag-pending: more curly braces, quoting and backtick to $() changes. new f5b2c9f git/hooks/x2go-post-receive-tag-pending: add myself to copyright header. The 6 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: git/hooks/x2go-post-receive-close-bugs | 3 +- git/hooks/x2go-post-receive-tag-pending | 91 ++++++++++++++----------------- 2 files changed, 43 insertions(+), 51 deletions(-) -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository maintenancescripts. commit 3c65155b22d385b50eb912794ffaa249149bff33 Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Feb 23 21:37:02 2015 +0100 git/hooks/x2go-post-receive-close-bugs: add copyright header. --- git/hooks/x2go-post-receive-close-bugs | 1 + 1 file changed, 1 insertion(+) diff --git a/git/hooks/x2go-post-receive-close-bugs b/git/hooks/x2go-post-receive-close-bugs index 24ae34a..872f08b 100755 --- a/git/hooks/x2go-post-receive-close-bugs +++ b/git/hooks/x2go-post-receive-close-bugs @@ -2,6 +2,7 @@ # # Copyright (c) 2009 Adeodato Simó (dato@net.com.org.es) # Copyright (c) 2013 Mike Gabriel (mike.gabriel@das-netzwerkteam.de) +# Copyright (c) 2015 Mihai Moldovan (ionic@ionic.de) # # This software may be used and distributed according to the terms # of the MIT License, incorporated herein by reference. -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository maintenancescripts. commit b813d7f39efaa89a0a7788c0e9bd82896919c135 Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Feb 23 21:54:19 2015 +0100 git/hooks/x2go-post-receive-tag-pending: more curly braces, quoting and backtick to $() changes. --- git/hooks/x2go-post-receive-tag-pending | 36 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/git/hooks/x2go-post-receive-tag-pending b/git/hooks/x2go-post-receive-tag-pending index 2a931e1..26089d4 100755 --- a/git/hooks/x2go-post-receive-tag-pending +++ b/git/hooks/x2go-post-receive-tag-pending @@ -25,46 +25,46 @@ BASEURL="http://code.x2go.org/gitweb?p=${GIT_REPO_NAME}" PROJECT="${GIT_REPO_NAME//.git/}" -tempdir=`mktemp -d` +tempdir="$(mktemp -d)" trap "rm -rf \"${tempdir}\"" EXIT -send_mail() { # send_mail bugno revno diff_file - local bug="$1" - local fixed_in_version="$2" - local rev="$3" - local diff="$4" - local from=$(git show -s --pretty='format:%cn <%ce>' $rev | - perl -CI -MEncode -e 'print Encode::encode("MIME-Q", <STDIN>)') +function send_mail() { # send_mail bugno revno diff_file + local bug="${1}" + local fixed_in_version="${2}" + local rev="${3}" + local diff="${4}" + local from="$(git show -s --pretty='format:%cn <%ce>' "${rev}" | + perl -CI -MEncode -e 'print Encode::encode("MIME-Q", <STDIN>)')" (cat <<EOF -From: $from -To: $bug-submitter@bugs.x2go.org -Cc: control@bugs.x2go.org, $bug@bugs.x2go.org -Subject: X2Go issue (in src:$PROJECT) has been marked as pending for release +From: ${from} +To: ${bug}-submitter@bugs.x2go.org +Cc: control@bugs.x2go.org, ${bug}@bugs.x2go.org +Subject: X2Go issue (in src:${PROJECT}) has been marked as pending for release Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer: http://snipr.com/post-receive-tag-pending -tag #$bug pending -fixed #$bug $version +tag #${bug} pending +fixed #${bug} ${version} thanks Hello, -X2Go issue #$bug (src:$PROJECT) reported by you has been +X2Go issue #${bug} (src:${PROJECT}) reported by you has been fixed in X2Go Git. You can see the changelog below, and you can check the diff of the fix at: - ${BASEURL};a=commitdiff;h=`git show -s --pretty='format:%h' "$rev"` + ${BASEURL};a=commitdiff;h=$(git show -s --pretty='format:%h' "$rev") -The issue will most likely be fixed in src:$PROJECT ($version). +The issue will most likely be fixed in src:${PROJECT} (${version}). light+love X2Go Git Admin (on behalf of the sender of this mail) --- EOF - cat "$diff") | /usr/sbin/sendmail -oi -t + cat "${diff}") | /usr/sbin/sendmail -oi -t } while read oldrev newrev refname; do -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository maintenancescripts. commit 8e1db5610fde0067fba136a87ca0ff4efc94520b Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Feb 23 21:52:47 2015 +0100 git/hooks/x2go-post-receive-tag-pending: use common.sh. --- git/hooks/x2go-post-receive-tag-pending | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/git/hooks/x2go-post-receive-tag-pending b/git/hooks/x2go-post-receive-tag-pending index 232fac1..138815e 100755 --- a/git/hooks/x2go-post-receive-tag-pending +++ b/git/hooks/x2go-post-receive-tag-pending @@ -16,22 +16,14 @@ # post-receive's stdin, you can use pee(1), from the moreutils package. # No configuration is necessary. +. hooks/common.sh + set -e set -u -verbose=true - -function info { - $verbose && echo >&2 "-Info- $1" -} - - -REPODIR=`readlink -f "$PWD"` -REPOREL=${REPODIR#/srv/git/code.x2go.org/} -BASEURL="http://code.x2go.org/gitweb?p=$REPOREL" +BASEURL="http://code.x2go.org/gitweb?p=${GIT_REPO_NAME}" -PROJECT=${REPOREL//.git/} -PROJECT=$(basename $PROJECT) +PROJECT="${GIT_REPO_NAME//.git/}" tempdir=`mktemp -d` trap "rm -rf \"${tempdir}\"" EXIT -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository maintenancescripts. commit 11e5f3f29e0206d3d9f4e5bd68a6044f988e4bde Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Feb 23 21:53:41 2015 +0100 git/hooks/x2go-post-receive-tag-pending: change tabs to spaces, add quoting and curly braces around variables in big block. --- git/hooks/x2go-post-receive-tag-pending | 38 +++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/git/hooks/x2go-post-receive-tag-pending b/git/hooks/x2go-post-receive-tag-pending index 138815e..2a931e1 100755 --- a/git/hooks/x2go-post-receive-tag-pending +++ b/git/hooks/x2go-post-receive-tag-pending @@ -68,25 +68,25 @@ EOF } while read oldrev newrev refname; do - if echo $refname | egrep -v "refs/tags/" >/dev/null && echo $refname | egrep "refs/heads/(master|release/.*)" >/dev/null; then - git rev-parse --not | grep -v $(git rev-parse $refname) | - git rev-list --reverse --stdin "${oldrev}..${newrev}" | - while read rev; do - c="$tempdir/$rev.changelog" - d="$tempdir/$rev.diff" - git show ${rev}:debian/changelog >"$c" 2>/dev/null - git show ${rev} -- debian/changelog >"$d" - version=`cat "$c" | sed 's/Fixes:/Closes:/i' | dpkg-parsechangelog -l- | sed -rne 's/^Version: *//pi' -e 's/[0-9]+://' | cut -d"-" -f1` - bugs=`cat "$c" | sed 's/Fixes:/Closes:/i' | dpkg-parsechangelog -l- | sed -rne 's/^Closes: *//pi'` - for bug in $bugs; do - if grep -qE '^\+.*\<'$bug'\>' "$d" && - ! grep -qE '^-.*\<'$bug'\>' "$d"; then - info "Marking X2Go issue #$bug as pending for release ($version)." - send_mail $bug "$version" "$rev" "$d" - fi - done - done - fi + if echo "${refname}" | egrep -v "refs/tags/" >/dev/null && echo "${refname}" | egrep "refs/heads/(master|release/.*)" >/dev/null; then + git rev-parse --not | grep -v "$(git rev-parse ${refname})" | \ + git rev-list --reverse --stdin "${oldrev}..${newrev}" | \ + while read rev; do + c="${tempdir}/${rev}.changelog" + d="${tempdir}/${rev}.diff" + git show "${rev}:debian/changelog" >"${c}" 2>/dev/null + git show "${rev}" -- "debian/changelog" >"${d}" + version=$(cat "${c}" | sed 's/Fixes:/Closes:/i' | dpkg-parsechangelog -l- | sed -rne 's/^Version: *//pi' -e 's/[0-9]+://' | cut -d"-" -f1) + bugs=$(cat "${c}" | sed 's/Fixes:/Closes:/i' | dpkg-parsechangelog -l- | sed -rne 's/^Closes: *//pi') + for bug in ${bugs}; do + if grep -qE '^\+.*\<'"${bug}"'\>' "${d}" && + ! grep -qE '^-.*\<'"${bug}"'\>' "${d}"; then + info "Marking X2Go issue #${bug} as pending for release (${version})." + send_mail "${bug}" "${version}" "${rev}" "${d}" + fi + done + done + fi done # vi: et -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository maintenancescripts. commit bdddf6c01ebba497c49f0e3361a96f3754ecfe07 Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Feb 23 21:51:14 2015 +0100 git/hooks/x2go-post-receive-close-bugs: remove verbose variable, defined in common.sh. --- git/hooks/x2go-post-receive-close-bugs | 2 -- 1 file changed, 2 deletions(-) diff --git a/git/hooks/x2go-post-receive-close-bugs b/git/hooks/x2go-post-receive-close-bugs index 872f08b..a0d80cb 100755 --- a/git/hooks/x2go-post-receive-close-bugs +++ b/git/hooks/x2go-post-receive-close-bugs @@ -22,8 +22,6 @@ set -e set -u -verbose="1" - BASEURL="http://code.x2go.org/gitweb?p=${GIT_REPO_NAME}" PROJECT="${GIT_REPO_NAME//.git/}" -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository maintenancescripts. commit f5b2c9f5d0a434ef40ea690979a45e7299814111 Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Feb 23 21:55:21 2015 +0100 git/hooks/x2go-post-receive-tag-pending: add myself to copyright header. --- git/hooks/x2go-post-receive-tag-pending | 1 + 1 file changed, 1 insertion(+) diff --git a/git/hooks/x2go-post-receive-tag-pending b/git/hooks/x2go-post-receive-tag-pending index 26089d4..3bcc3c0 100755 --- a/git/hooks/x2go-post-receive-tag-pending +++ b/git/hooks/x2go-post-receive-tag-pending @@ -2,6 +2,7 @@ # # Copyright (c) 2009 Adeodato Simó (dato@net.com.org.es) # Copyright (c) 2013 Mike Gabriel (mike.gabriel@das-netzwerkteam.de) +# Copyright (c) 2015 Mihai Moldovan (ionic@ionic.de) # # This software may be used and distributed according to the terms # of the MIT License, incorporated herein by reference. -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git