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