From: Jacob Keller Date: Thu, 27 Mar 2014 18:39:59 +0000 (-0700) Subject: aiaiai: fixup srcdir in email and gerrit scripts X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ba0b22a4c1f36fe52c7f504c2add8c1563126694;p=users%2Fdedekind%2Faiaiai.git aiaiai: fixup srcdir in email and gerrit scripts $srcdir should represent the current directory where the actual shell file is located. This requires also updating $PATH so that it points to the correct directories. This is somewhat confusing since we have to add '..' to a section, but it fixes the switch to dash check for email scripts which previously was broken. It also makes everything more consistent. Signed-off-by: Jacob Keller Signed-off-by: Artem Bityutskiy --- diff --git a/email/aiaiai-email-dispatcher b/email/aiaiai-email-dispatcher index d31e88e..caf66a8 100755 --- a/email/aiaiai-email-dispatcher +++ b/email/aiaiai-email-dispatcher @@ -4,8 +4,8 @@ # Author: Artem Bityutskiy # License: GPLv2 -srcdir="$(readlink -ev -- ${0%/*}/..)" -PATH="$srcdir/helpers:$srcdir/email:$srcdir/helpers/libshell:$PATH" +srcdir="$(readlink -ev -- ${0%/*})" +PATH="$srcdir:$srcdir/..:$srcdir/../helpers:$srcdir/../helpers/libshell:$PATH" echo $PATH . shell-error diff --git a/email/aiaiai-email-dispatcher-helper b/email/aiaiai-email-dispatcher-helper index 018c0d4..5b851cd 100755 --- a/email/aiaiai-email-dispatcher-helper +++ b/email/aiaiai-email-dispatcher-helper @@ -4,8 +4,8 @@ # Author: Artem Bityutskiy # License: GPLv2 -srcdir="$(readlink -ev -- ${0%/*}/..)" -PATH="$srcdir/helpers:$srcdir/email:$srcdir/libshell:$PATH" +srcdir="$(readlink -ev -- ${0%/*})" +PATH="$srcdir:$srcdir/..:$srcdir/../helpers:$srcdir/../helpers/libshell:$PATH" . shell-error . shell-signal diff --git a/email/aiaiai-email-lda b/email/aiaiai-email-lda index 5db3f15..8d65ae2 100755 --- a/email/aiaiai-email-lda +++ b/email/aiaiai-email-lda @@ -4,8 +4,8 @@ # Author: Artem Bityutskiy # License: GPLv2 -srcdir="$(readlink -ev -- ${0%/*}/..)" -PATH="$srcdir/helpers:$srcdir/email:$srcdir/helpers/libshell:$PATH" +srcdir="$(readlink -ev -- ${0%/*})" +PATH="$srcdir:$srcdir/..:$srcdir/../helpers:$srcdir/../helpers/libshell:$PATH" . shell-error . shell-args diff --git a/email/aiaiai-email-test-patchset b/email/aiaiai-email-test-patchset index 3a7eb77..c02b331 100755 --- a/email/aiaiai-email-test-patchset +++ b/email/aiaiai-email-test-patchset @@ -4,8 +4,8 @@ # Author: Artem Bityutskiy # License: GPLv2 -srcdir="$(readlink -ev -- ${0%/*}/..)" -PATH="$srcdir:$srcdir/helpers:$srcdir/email:$srcdir/helpers/libshell:$PATH" +srcdir="$(readlink -ev -- ${0%/*})" +PATH="$srcdir:$srcdir/..:$srcdir/../helpers:$srcdir/../helpers/libshell:$PATH" . shell-error . shell-args diff --git a/gerrit/aiaiai-jenkins-test-patchset b/gerrit/aiaiai-jenkins-test-patchset index 53da26e..629bfcb 100755 --- a/gerrit/aiaiai-jenkins-test-patchset +++ b/gerrit/aiaiai-jenkins-test-patchset @@ -4,8 +4,8 @@ # Author: Artem Bityutskiy # License: GPLv2 -srcdir="$(readlink -ev -- ${0%/*}/..)" -PATH="$srcdir:$srcdir/helpers/libshell:$PATH" +srcdir="$(readlink -ev -- ${0%/*})" +PATH="$srcdir:$srcdir/..:$srcdir/../helpers:$srcdir/../helpers/libshell:$PATH" . shell-error . shell-args