Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support bash 2.05b #16

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
can_fail_build: false
tags: alganet/shell-versions:test
targets: >
bash_2.05b.13
bash_3.0.22
bash_3.1.23
bash_3.2.57
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
can_fail_build: false
tags: alganet/shell-versions:all
targets: >
bash_2.05b.13
bash_3.0.22
bash_3.1.23
bash_3.2.57
Expand Down
21 changes: 18 additions & 3 deletions variants/bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ shvr_targets_bash ()
bash_3.2.57
bash_3.1.23
bash_3.0.22
bash_2.05b.13
@
}

Expand Down Expand Up @@ -56,6 +57,9 @@ shvr_build_bash ()
elif test "$version_baseline" = "3.0"
then apt-get -y install \
wget patch gcc bison make ncurses-dev
elif test "$version_baseline" = "2.05b"
then apt-get -y install \
wget patch gcc bison make autoconf
else apt-get -y install \
wget patch gcc bison make
fi
Expand Down Expand Up @@ -83,11 +87,22 @@ shvr_build_bash ()

cd "${build_srcdir}"

./configure \
--prefix="${SHVR_DIR_OUT}/bash_${version}"
if test "$version_baseline" = "2.05b"
then
rm configure
autoconf
./configure \
--prefix="${SHVR_DIR_OUT}/bash_${version}" \
--without-bash-malloc

make -j "$(nproc)"
make -j1
else

./configure \
--prefix="${SHVR_DIR_OUT}/bash_${version}" \

make -j "$(nproc)"
fi
mkdir -p "${SHVR_DIR_OUT}/bash_${version}/bin"
cp bash "${SHVR_DIR_OUT}/bash_${version}/bin/bash"

Expand Down
Loading