zlib script if was the wrong way around

This commit is contained in:
Fabian Posch 2025-01-09 15:52:30 +01:00
parent f7b81b36ec
commit 5c690dc891

View file

@ -1,18 +1,18 @@
#!/bin/bash
# locally install libedit-devel
# locally install zlib
here=$(pwd)
srcfolder="$here/src/zlib"
if [ -z ${ACT_HOME+x} ]; then
echo "Installing to ACT_HOME"
dest_lib=$ACT_HOME/lib
dest_hdr=$ACT_HOME/include
else
if [ -z ${ACT_HOME} ]; then
echo "Installing in home folder"
dest_lib=~/.zlib/lib
dest_hdr=~/.zlib/include
else
echo "Installing to ACT_HOME"
dest_lib=$ACT_HOME/lib
dest_hdr=$ACT_HOME/include
fi
# Create source folder