File: sendmail

package info (click to toggle)
dgit 12.16
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 3,368 kB
  • sloc: perl: 13,443; sh: 6,466; python: 334; makefile: 324; tcl: 69
file content (27 lines) | stat: -rwxr-xr-x 499 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
23
24
25
26
27
#!/bin/sh
set -e

cd "$DGIT_TEST_TMP"

exec >sendmail.last
date
printf "sendmail %s\n" "$*"
cat

exec >>sendmail.all
echo '----------------------------------------------------------------'
cat sendmail.last
echo

if [ "$DGIT_TEST_MUNPACK" ]; then
	set -x
	rm -rf sendmail.munpack
	mkdir sendmail.munpack

	sed 1,2d <sendmail.last | \
	$DGIT_TEST_MUNPACK -t -C sendmail.munpack

	test -f sendmail.munpack/part1
	test -f sendmail.munpack/t2u_fake-job_tag.txt
	# there might be a log transcript too
fi