Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #30533: rename bootstrap-download() to bootstrap_download().
Browse files Browse the repository at this point in the history
Hyphens aren't allowed by POSIX in shell function names.
  • Loading branch information
orlitzky committed Sep 12, 2020
1 parent 7dcb5a8 commit ab83893
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ SAGE_SPKG_CONFIGURE_$(echo ${pkgname} | tr '[a-z]' '[A-Z]')"
179|16|63|127) # install_config_rpath failed|no m4 for pkg-config|autotools not installed|or version too old
if [ $DOWNLOAD = yes ]; then
echo >&2 "Bootstrap failed, downloading required files instead."
bootstrap-download || exit $?
bootstrap_download || exit $?
else
if [ $st -eq 127 ]; then
verb="install"
Expand All @@ -148,7 +148,7 @@ SAGE_SPKG_CONFIGURE_$(echo ${pkgname} | tr '[a-z]' '[A-Z]')"
}

# Bootstrap by downloading the auto-generated files
bootstrap-download () {
bootstrap_download () {
sage-download-file configure-$CONFVERSION.tar.gz
if [ $? -ne 0 ]; then
echo >&2 "Error: downloading configure-$CONFVERSION.tar.gz failed"
Expand Down Expand Up @@ -262,7 +262,7 @@ if [ $ALWAYSDOWNLOAD = yes ]; then
fi
echo >&2 "Downloaded configure-$CONFVERSION.tar.gz from $CONFTARBALL_URL "
else
bootstrap-download || exit $?
bootstrap_download || exit $?
fi
else
bootstrap
Expand Down

0 comments on commit ab83893

Please sign in to comment.