t-prep-newpackage example 1.1
buildrune=$(
- (export LC_ALL=C.UTF-8
- if [ "$DGIT_TEST_INTREE" ]; then
- make -C $DGIT_TEST_INTREE dgit-user.7.view
- else
- man 7 dgit-user
- fi) | \
+ t-dgit-manpage 7 dgit-user | \
perl -ne '
next unless m/^ +Using sbuild$/ .. 0;
next unless m/^ +\%/ .. 0;
next if !m/\S/ .. 0;
s/^ +\%//;
+ $fixchr += s/(\s-c\s*)jessie(\s|$)/$1'"$schroot"'$2/;
print or die $!;
+ END { $fixchr == 1 or die $fixchr; }
'
)