mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
2811b032d6
Go beyond the obvious setup hooks now, with a bit of sed, with a skipped case: - cc-wrapper's `dontlink`, because it already is handled. Also, in nix files escaping was manually added. EMP
13 lines
437 B
Bash
13 lines
437 B
Bash
preConfigurePhases+=" updateAutotoolsGnuConfigScriptsPhase"
|
|
|
|
updateAutotoolsGnuConfigScriptsPhase() {
|
|
if [ -n "${dontUpdateAutotoolsGnuConfigScripts-}" ]; then return; fi
|
|
|
|
for script in config.sub config.guess; do
|
|
for f in $(find . -type f -name "$script"); do
|
|
echo "Updating Autotools / GNU config script to a newer upstream version: $f"
|
|
cp -f "@gnu_config@/$script" "$f"
|
|
done
|
|
done
|
|
}
|