From 458b197887e6e54fa1273afc4341e5748a5d8526 Mon Sep 17 00:00:00 2001

From: Sam Bossley bossley.samuel@gmail.com

Date: Thu, 30 Jun 2022 11:47:48 -0700

Subject: [PATCH 1/1] Fix POSIX compliance in build-tui script


build-tui.sh | 15 ++++++++++-----

1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/build-tui.sh b/build-tui.sh

index d109e027..fc648044 100755

--- a/build-tui.sh

+++ b/build-tui.sh

@@ -21,18 +21,21 @@ echo "\nThis script will build and optionally install clagrange with"

echo "statically linked the_Foundation and SEALCurses. First, let's configure"

echo "the build.\n"

-read -p "Build type? [${CMAKE_BUILD_TYPE}] " INPUT

+echo "Build type? [${CMAKE_BUILD_TYPE}]"

+read INPUT

if [ "${INPUT}." != "." ]; then

 CMAKE_BUILD_TYPE=${INPUT}

fi

-read -p "Install prefix? [${INSTALL_PREFIX}] " INPUT

+echo "Install prefix? [${INSTALL_PREFIX}]"

+read INPUT

if [ "${INPUT}." != "." ]; then

 INSTALL_PREFIX=${INPUT}

fi

if [ ! -d lib/sealcurses ]; then

 if [ "${INPUT}." = "n." ]; then

     echo "Build aborted."

     exit

@@ -43,7 +46,8 @@ fi

#-----------------------------------------------------------------------------

if [ -d build-tui ]; then

 if [ "${CONFIRMED}." != "y." ] && [ "${CONFIRMED}." != "Y." ]; then

     echo "Build aborted."

     exit

@@ -97,7 +101,8 @@ cmake --build . || exit 1

echo "-----"

echo "clagrange and resources.lgr can be found in 'build-tui'."

-read -p "Do you want to install them to ${INSTALL_PREFIX}? (sudo) [yN] " CONFIRMED

+echo "Do you want to install them to ${INSTALL_PREFIX}? (sudo) [yN]"

+read CONFIRMED

if [ "${CONFIRMED}" = "y" ]; then

 sudo cmake --install .

 exit

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/release/patch/458b197887e6e54fa1273afc4341e5748a5d8526.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
68.285381 milliseconds
Gemini-to-HTML Time
1.33382 milliseconds

This content has been proxied by September (3851b).