diff options
| author | beatrice <beatrice@dangofactory.net> | 2026-11-22 20:03:00 +0900 |
|---|---|---|
| committer | beatrice <beatrice@dangofactory.net> | 2026-11-22 20:03:00 +0900 |
| commit | 2d8ae60f18b379215be576a0d533e28fa28e1bf1 (patch) | |
| tree | 47cd73ec5fd53931d2dcdd634a9e7687c4449185 /autogen.sh | |
| parent | 77e1ce5d6dee871c49ef211222ba18ef0c486bda (diff) | |
| download | libsodium-master.tar.gz libsodium-master.zip | |
Release tarball libsodium.tar.gz (dist-generated files / local differences from tag)HEADlocal/libsodiummaster
Diffstat (limited to 'autogen.sh')
| -rwxr-xr-x | autogen.sh | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -104,17 +104,16 @@ fi command -v curl >/dev/null 2>&1 && { echo "Downloading config.guess and config.sub..." - curl -sSL --fail -o config.guess \ - 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' && - chmod +x config.guess && - chmod +x build-aux/config.guess - - curl -sSL --fail -o config.sub \ - 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' && - chmod +x build-aux/config.sub && - mv -f config.sub build-aux/config.sub - - echo "Done." + for file in config.guess config.sub; do + if curl -sSL --fail --retry 3 --connect-timeout 10 --max-time 60 \ + -o "$file" "https://git.savannah.gnu.org/cgit/config.git/plain/$file" && + chmod +x "$file" && + mv -f "$file" "build-aux/$file"; then + echo "Updated $file." + else + echo "Warning: unable to update $file; keeping the existing copy." >&2 + fi + done } rm -f config.guess config.sub |
