Commit 28a81c45 authored by Jondy Zhao's avatar Jondy Zhao

Patch /usr/bin/cygport after install cygwin

parent 72de90f1
...@@ -138,7 +138,13 @@ elif [[ ! -d /opt/slapos ]] ; then ...@@ -138,7 +138,13 @@ elif [[ ! -d /opt/slapos ]] ; then
echo Warning: Missing ${_filename} echo Warning: Missing ${_filename}
fi fi
# Patch cygport # Patch cygport, so that we can specify package prefix by ourself.
_filename=/usr/bin/cygport
if [[ -f ${_filename} ]] ; then
echo Patching ${_filename} ...
sed -i -e 's/D="${workdir}\/inst"/D="${CYGCONF_PREFIX-${workdir}\/inst}"/g' ${_filename} &&
echo OK.
fi
_filename=/usr/share/cygport/cygclass/autotools.cygclass _filename=/usr/share/cygport/cygclass/autotools.cygclass
if [[ -f ${_filename} ]] ; then if [[ -f ${_filename} ]] ; then
echo Patching ${_filename} ... echo Patching ${_filename} ...
......
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