Debian Codegraph @

debian/dh_autotools-dev_restoreconfig

raw
1 #!/usr/bin/perl -w
2
3 =head1 NAME
4
5 dh_autotools-dev_restoreconfig - restore 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_restoreconfig> [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 dh_autotools-dev_restoreconfig restores the original B<config.sub> and B<config.guess>
26 files that have been backed up by dh_autotools-dev_updateconfig under the names
27 B<config.sub.dh-orig> and B<config.guess.dh-orig>.
28
29 =head1 EXAMPLES
30
31 dh_autotools-dev_restoreconfig is usually called indirectly in a rules file via the
32 dh command.
33
34 %:
35 dh $@ --with autotools_dev
36
37 It can also be direcly called in the clean rule.
38
39 clean:
40 dh_testdir
41 dh_testroot
42 [ ! -f Makefile ] || $(MAKE) clean
43 dh_autotools-dev_restoreconfig
44 dh_clean
45
46 =cut
47
48 init();
49
50 deprecated_functionality('dh_autotools-dev_restoreconfig is deprecated; please see dh_autotools-dev_restoreconfig(1) for a replacement', 12);
51
52 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.dh-orig" "$c_g" ; fi ; done');
53 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.dh-orig" "$c_s" ; fi ; done');
54 complex_doit('find . -type f \( -name config.guess.dh-orig -o -name config.sub.dh-orig \) -delete');
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