reassign 527581 autotools-dev
retitle 527581 Please provide a dh sequence addon
found 527581 20090427.1
notfound 527581 7.2.9
tags 527581 + patch
thanks

I believe this feature request belongs to the autotools-dev package. I have hacked together the debhelper addon based on Raphael Hertzog's upload of quilt 0.46-7 and the replacing routine found in cdbs.

The command names are subject to change, of course, but I still hope this helps a bit...

Cheers,
Fabian

--
Dipl.-Phys. Fabian Greffrath

Ruhr-Universität Bochum
Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT)
Universitätsstr. 150, IB 3/134
D-44780 Bochum

Telefon: +49 (0)234 / 32-26334
Fax:     +49 (0)234 / 32-14227
E-Mail:  greffr...@leat.ruhr-uni-bochum.de
#!/usr/bin/perl -w

=head1 NAME

dh_autotools_update - update B<config.sub> and B<config.guess>

=cut

use strict;
use Debian::Debhelper::Dh_Lib;

=head1 SYNOPSIS

B<dh_autotools_update> [S<I<debhelper options>>]

=head1 DESCRIPTION

dh_autotools_update replaces all occurances of B<config.sub> and B<config.guess>
in the source tree by the up-to-date versions found in the autotools-dev 
package.
The original files are backed up under the names B<config.sub.dh-orig> and
B<config.guess.dh-orig>.

=head1 EXAMPLES

dh_autotools_update is usually called indirectly in a rules file via the
dh command.

        %:
                dh --with autotools $@

It can also be direcly called at the start of the build (or configure)
rule.

        build:
                dh_autotools_update
                ./configure
                $(MAKE)

=cut

init();

complex_doit('for config_guess in `find -type f -name config.guess` ; do if ! 
test -e $config_guess.dh-orig ; then mv -f $config_guess $config_guess.dh-orig 
; cp -f /usr/share/misc/config.guess $config_guess ; fi ; done');
complex_doit('for config_sub in `find -type f -name config.sub` ; do if ! test 
-e $config_sub.dh-orig ; then mv -f $config_sub $config_sub.dh-orig ; cp -f 
/usr/share/misc/config.sub $config_sub ; fi ; done');

=head1 SEE ALSO

L<debhelper(7)>, L<dh(1)>.

This program is meant to be used together with debhelper.

=head1 AUTHOR

Fabian Greffrath <fab...@debian-unofficial.org>

=cut

#!/usr/bin/perl
use warnings;
use strict;
use Debian::Debhelper::Dh_Lib;

insert_before("dh_auto_configure", "dh_autotools_update");
insert_before("dh_clean", "dh_autotools_restore");

1;
#!/usr/bin/perl -w

=head1 NAME

dh_autotools_restore - restore B<config.sub> and B<config.guess>

=cut

use strict;
use Debian::Debhelper::Dh_Lib;

=head1 SYNOPSIS

B<dh_quilt_unpatch> [S<I<debhelper options>>]

=head1 DESCRIPTION

dh_autotools_restore restores the original B<config.sub> and B<config.guess>
files that have been backed up by dh_autotools_update under the names
B<config.sub.dh-orig> and B<config.guess.dh-orig>.

=head1 EXAMPLES

dh_autotools_restore is usually called indirectly in a rules file via the
dh command.

        %:
                dh --with autotools $@

It can also be direcly called in the clean rule.

        clean:
                dh_testdir
                dh_testroot
                [ ! -f Makefile ] || $(MAKE) clean
                dh_autotools_restore
                dh_clean

=cut

init();

complex_doit('for config_guess in `find -type f -name config.guess` ; do if 
test -e $config_guess.dh-orig ; then mv -f $config_guess.dh-orig $config_guess 
; fi ; done');
complex_doit('for config_sub in `find -type f -name config.sub` ; do if test -e 
$config_sub.dh-orig ; then mv -f $config_sub.dh-orig $config_sub ; fi ; done');

=head1 SEE ALSO

L<debhelper(7)>, L<dh(1)>.

This program is meant to be used together with debhelper.

=head1 AUTHOR

Fabian Greffrath <fab...@debian-unofficial.org>

=cut

Reply via email to