Commit 72de90f1 authored by Jondy Zhao's avatar Jondy Zhao

Patch cygport in the script post-install

parent aaaadb60
......@@ -138,6 +138,20 @@ elif [[ ! -d /opt/slapos ]] ; then
echo Warning: Missing ${_filename}
fi
# Patch cygport
_filename=/usr/share/cygport/cygclass/autotools.cygclass
if [[ -f ${_filename} ]] ; then
echo Patching ${_filename} ...
sed -i -e 's/prefix=$(__host_prefix)/prefix=${CYGCONF_PREFIX-$(__host_prefix)}/g' ${_filename} &&
echo OK.
fi
_filename=/usr/share/cygport/cygclass/cmake.cygclass
if [[ -f ${_filename} ]] ; then
echo Patching ${_filename} ...
sed -i -e 's/-DCMAKE_INSTALL_PREFIX=$(__host_prefix)/-DCMAKE_INSTALL_PREFIX=${CYGCONF_PREFIX-$(__host_prefix)}/g' ${_filename} &&
echo OK.
fi
echo
echo Run post-install.sh script successfully.
echo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment