DH_AUTOTOOLS-DEV_RESTORECONFIG(1)

πŸ’… DH_AUTOTOOLS-DEV_RESTORECONFIG β€” the Debhelper era

okay bestie, so this is a page from the Debhelper manual set. Sit down, hydrate, and let's talk about dh_autotools-dev_restoreconfig. 🫢


✨ NAME ✨

dh_autotools-dev_restoreconfig β€” restore config.sub and config.guess


🌸 SYNOPSIS 🌸

dh_autotools-dev_restoreconfig [debhelper options]

πŸ’– DESCRIPTION πŸ’–

Deprecated. Not me being the bearer of bad news but… yeah. dh_autotools-dev_updateconfig and dh_autotools-dev_restoreconfig are deprecated, and they've been replaced by dh_update_autotools_config(1) and dh_clean(1) from debhelper. So like, please swap out every single use of dh_autotools-dev_updateconfig for dh_update_autotools_config, and then just… remove any use of dh_autotools-dev_restoreconfig. Gone. Ghosted. It's giving retirement arc. πŸ’€

so what does it actually do, you ask? dh_autotools-dev_restoreconfig restores the original config.sub and config.guess files β€” the ones that dh_autotools-dev_updateconfig backed up for you under the names config.sub.dh-orig and config.guess.dh-orig. Basically it's the undo button for your undo-able config files. πŸŽ€


πŸ¦‹ EXAMPLES πŸ¦‹

usually you don't even call dh_autotools-dev_restoreconfig yourself β€” it gets called indirectly in a rules file via the dh command. main character behavior, honestly. like this:

%:
    dh $@ --with autotools_dev

but you can also call it directly in the clean rule, if that's your vibe:

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

🌈 SEE ALSO 🌈

and also, for the record: this program is meant to be used together with debhelper. they're a package deal, iykyk. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Fabian Greffrath <fabian+debian@greffrath.com>


and that's the whole page, bestie πŸ’œ this one's from perl v5.40.1, dated 2026-02-02 β€” slay, stay deprecated, and go use dh_update_autotools_config instead βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from