summaryrefslogtreecommitdiffhomepage
path: root/midipix.sh
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-07-09 14:36:05 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-07-10 00:20:56 +0000
commit820be1bcb38273c0c7adc44b4a474c08273cdf61 (patch)
tree67e51517dce50e2877dc6c2c97969e8252dcfb3e /midipix.sh
parent4a634b84e63be8b31852c58b25017a61a4f523c7 (diff)
downloadmidipix_build-820be1bcb38273c0c7adc44b4a474c08273cdf61.tar.bz2
midipix_build-820be1bcb38273c0c7adc44b4a474c08273cdf61.tar.xz
General cleanup; user-visible changes: -a nt{32,64}, -b {debug,release}.
Diffstat (limited to 'midipix.sh')
-rwxr-xr-xmidipix.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/midipix.sh b/midipix.sh
index a800acc6..2e03abe3 100755
--- a/midipix.sh
+++ b/midipix.sh
@@ -23,7 +23,7 @@ convert_links_ask() {
[yY]) break; ;;
*) echo "Exiting."; exit 5; ;;
esac;
- for _link_name in $(find ${MIDIPIX_PATH}/native/lib \
+ for _link_name in $(find ${MIDIPIX_PATH}/native/lib \
-maxdepth 1 -name \*.so -type l); do
_link_target="$(readlink -- "${_link_name}")";
if [ -f "${MIDIPIX_PATH}/native/lib/${_link_target}" ]; then
@@ -37,9 +37,9 @@ convert_links_ask() {
check_prereq_files() {
local _fname;
- for _fname in native/bin/ntctty.exe \
- native/bin/chroot \
- native/bin/env \
+ for _fname in native/bin/ntctty.exe \
+ native/bin/chroot \
+ native/bin/env \
native/bin/bash; do
if [ ! -e ${MIDIPIX_PATH}/${_fname} ]; then
return 1;
@@ -70,10 +70,10 @@ elif [ -n "${NATIVE_LIB_LINKS:=$(find ${MIDIPIX_PATH}/native/lib -maxdepth 1 -na
convert_links_ask || exit 5;
else
check_prereq_files || exit 6;
- if [ -f ${MIDIPIX_PATH}/native/bin/libpsxscl.log ]; then
- echo Found libpsxscl.log, copying to ${MIDIPIX_PATH}/native/bin/libpsxscl.last.
- cp ${MIDIPIX_PATH}/native/bin/libpsxscl.log \
- ${MIDIPIX_PATH}/native/bin/libpsxscl.last || exit 7;
+ if [ -f ${MIDIPIX_PATH}/libpsxscl.log ]; then
+ echo Found libpsxscl.log, copying to ${MIDIPIX_PATH}/libpsxscl.last.
+ cp -p -- ${MIDIPIX_PATH}/libpsxscl.log \
+ ${MIDIPIX_PATH}/libpsxscl.last || exit 7;
fi;
echo "Absolute Midipix pathname: ${MIDIPIX_PATH}";
if [ "${UNAME_OS}" = "Msys" ]; then