| 1 |
#!/usr/bin/perl -w |
| 2 |
|
| 3 |
=head1 NAME |
| 4 |
|
| 5 |
dh_autotools-dev_updateconfig - update B<config.sub> and B<config.guess> |
| 6 |
|
| 7 |
=cut |
| 8 |
|
| 9 |
use strict; |
| 10 |
use Debian::Debhelper::Dh_Lib; |
| 11 |
|
| 12 |
=head1 SYNOPSIS |
| 13 |
|
| 14 |
B<dh_autotools-dev_updateconfig> [S<I<debhelper options>>] |
| 15 |
|
| 16 |
=head1 DESCRIPTION |
| 17 |
|
| 18 |
B<Deprecated>: dh_autotools-dev_updateconfig and |
| 19 |
dh_autotools-dev_restoreconfig are deprecated and replaced by |
| 20 |
L<dh_update_autotools_config(1)> and L<dh_clean(1)> from debhelper. |
| 21 |
Please replace all uses of dh_autotools-dev_updateconfig with |
| 22 |
dh_update_autotools_config and then remove any use of |
| 23 |
dh_autotools-dev_restoreconfig. |
| 24 |
|
| 25 |
|
| 26 |
dh_autotools-dev_updateconfig replaces all occurrences of B<config.sub> and B<config.guess> |
| 27 |
in the source tree by the up-to-date versions found in the autotools-dev package. |
| 28 |
The original files are backed up under the names B<config.sub.dh-orig> and |
| 29 |
B<config.guess.dh-orig>. |
| 30 |
|
| 31 |
=head1 EXAMPLES |
| 32 |
|
| 33 |
dh_autotools-dev_updateconfig is usually called indirectly in a rules file via the |
| 34 |
dh command. |
| 35 |
|
| 36 |
%: |
| 37 |
dh $@ --with autotools_dev |
| 38 |
|
| 39 |
It can also be direcly called at the start of the build (or configure) |
| 40 |
rule. |
| 41 |
|
| 42 |
build: |
| 43 |
dh_autotools-dev_updateconfig |
| 44 |
./configure |
| 45 |
$(MAKE) |
| 46 |
|
| 47 |
=cut |
| 48 |
|
| 49 |
init(); |
| 50 |
|
| 51 |
deprecated_functionality('dh_autotools-dev_updateconfig is deprecated; please see dh_autotools-dev_updateconfig(1) for a replacement', 12); |
| 52 |
|
| 53 |
complex_doit('for c_g in `find -type f -name config.guess` ; do if ! test -e "$c_g.dh-orig" ; then mv -f "$c_g" "$c_g.dh-orig" ; cp -f /usr/share/misc/config.guess "$c_g" ; fi ; done'); |
| 54 |
complex_doit('for c_s in `find -type f -name config.sub` ; do if ! test -e "$c_s.dh-orig" ; then mv -f "$c_s" "$c_s.dh-orig" ; cp -f /usr/share/misc/config.sub "$c_s" ; fi ; done'); |
| 55 |
|
| 56 |
=head1 SEE ALSO |
| 57 |
|
| 58 |
L<debhelper(7)>, L<dh(1)>. |
| 59 |
|
| 60 |
This program is meant to be used together with debhelper. |
| 61 |
|
| 62 |
=head1 AUTHOR |
| 63 |
|
| 64 |
Fabian Greffrath <[email protected]> |
| 65 |
|
| 66 |
=cut |
| 67 |
|