summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2018-05-14 17:09:35 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2018-05-14 17:09:35 +0000
commitcf64367f7632d53abf214bb0f1873292fb19dc6a (patch)
tree7874630b0e5ed2fa845bc9a19db5dabe9b8dd020
parent40514908c72e05fcc28ebe6bbff4104346c25b0e (diff)
downloadmidipix_build-cf64367f7632d53abf214bb0f1873292fb19dc6a.tar.bz2
midipix_build-cf64367f7632d53abf214bb0f1873292fb19dc6a.tar.xz
etc/midipix.sh: remove obsolete script.
-rwxr-xr-xetc/midipix.sh48
1 files changed, 0 insertions, 48 deletions
diff --git a/etc/midipix.sh b/etc/midipix.sh
deleted file mode 100755
index ff617f0f..00000000
--- a/etc/midipix.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh -f
-# Prepend /bin to ${PATH} if it does not contain it.
-case "${PATH}" in
-/bin:*|*:/bin:*|*:/bin) ;;
-*) export PATH="/bin${PATH:+:${PATH}}"; ;;
-esac;
-
-#
-# Process -h/${#} > 1. Set and cd into ${MIDIPIX_PATH} from either
-# ${1} or `native,' prepended w/ ${PWD}.
-if [ "x${1}" = "x-h" ]\
-|| [ ${#} -gt 1 ]; then
- echo "usage: $0 [-h] [path]";
- echo "path: absolute or relative Cygwin pathname to Midipix root, e.g. minipix or native.";
- exit 0;
-fi;
-MIDIPIX_PATH="${1:-native}";
-if [ "${1#/}" = "${1}" ]; then
- MIDIPIX_PATH="${PWD}/${MIDIPIX_PATH}";
-fi;
-cd ${MIDIPIX_PATH} || exit 1;
-
-#
-# Log variables and backup the last libpsxscl.log to libpsxscl.last.
-# Launch chroot(1)ed bash(1) inside ntctty and mintty. Obtain and
-# log the PID of the ntctty process for convenience.
-printf "%-35s: %s\n" "Absolute Midipix pathname" "${MIDIPIX_PATH}";
-if [ -f libpsxscl.log ]; then
- echo Found libpsxscl.log, copying to libpsxscl.last.
- if ! cp -p -- libpsxscl.log libpsxscl.last; then
- echo "(cp(1) returned ${?}, ignored.)";
- fi;
-fi;
-if [ "$(uname -o)" = "Msys" ]; then
- # MingW workaround (via Elieux.)
- export MSYS2_ARG_CONV_EXCL="*";
-fi;
-mintty -d -h always -s 120,80 -e /bin/sh -c "
- set -o errexit;
- stty raw -echo;
- env PATH=${MIDIPIX_PATH}/lib \
- bin/ntctty.exe -p -e \
- bin/chroot . \
- /bin/env PATH=/bin:/lib bash -l" &
-sleep ${SLEEP_DELAY:=0.25};
-printf "%-35s: %s\n" "ntctty PID" "$(ps -W | awk '$NF ~ /ntctty\.exe$/{print $1}')";
-
-# vim:filetype=sh