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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#!/bin/sh
# documentation is at the end
set -e
set -u
# initialize begin
DPT__SCRIPTS=scripts # REPLACED AT INSTALL TIME
for f in ~/.dpt.conf ~/.config/dpt.conf; do
if [ -r "$f" ]; then
. "$f"
fi
done
OOT=1 . "$DPT__SCRIPTS/lib/dpt-lib.sh"
# initialize end
[ -n "${DPT_PACKAGES:-}" ] || die "DPT_PACKAGES environment variable not set."
DHMPDIR="$DPT_PACKAGES/dh-make-perl"
[ -d "$DHMPDIR" ] || die "Directory $DHMPDIR not found. Do you have a Git checkout of dh-make-perl under $DPT_PACKAGES?"
PERL5LIB="$DHMPDIR/lib" exec "$DHMPDIR/dh-make-perl" --data-dir "$DHMPDIR/share" "$@"
POD= << EOF
=head1 NAME
dh-make-perl-dev -- run development version of dh-make-perl from Git checkout
=head1 SYNOPSIS
dh-make-perl-dev I<[dh-make-perl options and arguments]>
=head1 DESCRIPTION
B<dh-make-perl-dev> runs C<dh-make-perl> from a Git checkout.
=head1 CONFIGURATION
B<dh-make-perl-dev> uses the C<DPT_PACKAGES> environment variable to find
the local Git repository of C<dh-make-perl>.
See L<dpt-config(5)> for details.
=head1 COPYRIGHT AND LICENSE
Copyright (c) 2023, gregor herrmann E<lt>gregoa@debian.orgE<gt>
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
=cut
EOF
|