File: dsd-ssh

package info (click to toggle)
dgit 13.19
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 4,084 kB
  • sloc: perl: 13,953; sh: 7,268; makefile: 340; python: 334; tcl: 69
file content (22 lines) | stat: -rwxr-xr-x 635 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -e

set -${DGIT_TEST_NDEBUG-x}
: '(((((((((((((((((((((((((((((((((((((((('

tmp=$DGIT_TEST_TMP
cd /
userhost="$1"; shift
export SSH_ORIGINAL_COMMAND="$*"

# We might be "ssh"ing from the t2u oracle, in which case we want
# to go back to your usual set of keyrings and keys.
export GNUPGHOME=$tmp/gnupg

# undoes PERLLIB so that we rely on dgit-ssh-dispatch setting it
# we have to compensate with -I so that dgit-ssh-dispatch finds Dgit.pm
unset PERLLIB
${DGIT_TEST_INTREE+perl -I}$DGIT_TEST_INTREE \
${DGIT_SSH_DISPATCH_TEST-dgit-ssh-dispatch} ${DGIT_TEST_NDEBUG- -D} $tmp

: '))))))))))))))))))))))))))))))))))))))))'