summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-06-15 18:23:44 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-06-15 18:23:44 +0000
commit5442672390e63971ee79bf93195d727fdcf9e3e3 (patch)
treeb653e22bc1aff0fb686a1bf2ce0f08ddee49dc1a
parent7927966d8799ccceeee04d1e9e7119f0cac65d7b (diff)
downloadmidipix_build-5442672390e63971ee79bf93195d727fdcf9e3e3.tar.bz2
midipix_build-5442672390e63971ee79bf93195d727fdcf9e3e3.tar.xz
Use /proc/cygdrive instead of changing the cygdrive prefix in midipix.sh.
(via Elieux.)
-rwxr-xr-xmidipix.sh13
1 files changed, 1 insertions, 12 deletions
diff --git a/midipix.sh b/midipix.sh
index 9a074174..e4879b95 100755
--- a/midipix.sh
+++ b/midipix.sh
@@ -38,26 +38,15 @@ else
cp /proc/cygdrive${MIDIPIX_PATH}/bin/libpsxscl.log \
/proc/cygdrive${MIDIPIX_PATH}/bin/libpsxscl.last || exit 5;
fi;
- OLD_CYGDRIVE_PREFIX="$(readlink /proc/cygdrive)" || exit 6;
echo "Midipix drive letter.....: ${MIDIPIX_DRIVE}";
echo "Midipix pathname.........: ${MIDIPIX_PNAME}";
echo "Absolute Midipix pathname: ${MIDIPIX_PATH}";
- echo --------------------------------------------------------
- echo WARNING: The cygdrive path prefix will be changed to /
- echo whilst the Midipix shell window is running. It will be
- echo reset to its previous value of ${OLD_CYGDRIVE_PREFIX} after it exits.
- echo --------------------------------------------------------
if [ "${UNAME_OS}" = "Msys" ]; then
export MSYS2_ARG_CONV_EXCL="*";
fi;
mintty -h always -e /bin/sh -c "
set -o errexit; stty raw -echo;
- mount --change-cygdrive-prefix /;
cd ${MIDIPIX_PATH}/native/bin;
- export PATH=${MIDIPIX_PATH}/native/bin:${MIDIPIX_PATH}/native/lib;
+ export PATH=/proc/cygdrive${MIDIPIX_PATH}/native/bin:/proc/cygdrive${MIDIPIX_PATH}/native/lib;
./ntctty.exe -e chroot //${MIDIPIX_PATH#/}/native /bin/bash";
- echo --------------------------------------------------------
- echo Resetting cygdrive path prefix to ${OLD_CYGDRIVE_PREFIX}.
- echo --------------------------------------------------------
- mount --change-cygdrive-prefix "${OLD_CYGDRIVE_PREFIX}";
fi;