diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-12-07 17:09:14 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-12-07 17:10:50 +0100 |
commit | 38dd78a5e7f3cd0b5969b400bab0246b37eef251 (patch) | |
tree | 8370092e291623655fb1cb99144e9278a5be129d | |
parent | e32b1bc5f0844b06767b12b53e1e8040f8b16a6e (diff) | |
download | midipix_build-38dd78a5e7f3cd0b5969b400bab0246b37eef251.tar.bz2 midipix_build-38dd78a5e7f3cd0b5969b400bab0246b37eef251.tar.xz |
etc/midipix_check.sh, subr/build.subr: remove unused/unnecessary script.
-rwxr-xr-x | etc/midipix_check.sh | 51 | ||||
-rw-r--r-- | subr/build.subr | 2 |
2 files changed, 1 insertions, 52 deletions
diff --git a/etc/midipix_check.sh b/etc/midipix_check.sh deleted file mode 100755 index f669de44..00000000 --- a/etc/midipix_check.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -set -o errexit -o noglob; -if [ "${1}" = "-m" ]; then - MIDIPIX_DNAME_DIST=minipix; shift; -fi; -if [ -n "${1}" ]; then - MIDIPIX_PATH=$(cygpath -am "${1}"); -else - MIDIPIX_PATH=$(cygpath -am .); -fi; -: ${MIDIPIX_DNAME_DIST:=native}; -echo "Absolute Midipix pathname: ${MIDIPIX_PATH}"; -echo "Distribution name : ${MIDIPIX_DNAME_DIST}"; -printf "%-85s" "Checking if all binaries are present..."; -for __ in chroot env ntctty.exe; do - if [ ! -e ${MIDIPIX_PATH}/${MIDIPIX_DNAME_DIST}/bin/${__} ]; then - printf "\nerror: missing file ${MIDIPIX_PATH}/${MIDIPIX_DNAME_DIST}/bin/${__}\n"; - exit 2; - fi; -done; -printf "\033[97m[ \033[92mOK \033[97m]\033[0m\n"; -printf "%-85s" "Checking ${MIDIPIX_PATH}/${MIDIPIX_DNAME_DIST}/lib for symbolic links..."; -if [ -n "$(find ${MIDIPIX_DNAME_DIST}/lib \ - -maxdepth 1 -name \*.so -type l -print -quit)" ]; then - echo; - echo "Warning: ${MIDIPIX_PATH}/${MIDIPIX_DNAME_DIST}/lib contains shared objects (library" - echo "images) that are symbolic links. This is not supported by Midipix at" - echo "present and commonly occurs if the binary distribution tarball was" - echo "extracted by an application that does not support symbolic links" - echo "correctly. This also occurs when a binary distribution was built locally." - printf "Convert all shared object symbolic links to hard links? (y|N) "; - read __; - case "${__}" in - [yY]) break; ;; - *) echo "Exiting."; exit 3; ;; - esac; - for LINK_NAME in $(find ${MIDIPIX_PATH}/${MIDIPIX_DNAME_DIST}/lib \ - -maxdepth 1 -name \*.so -type l); do - LINK_TARGET="$(readlink -- "${LINK_NAME}")"; - if [ -f "${MIDIPIX_PATH}/native/lib/${LINK_TARGET}" ]; then - echo rm -f -- "${LINK_NAME}"; - rm -f -- "${LINK_NAME}"; - echo ln -f -- "${LINK_TARGET}" "${LINK_NAME}"; - ln -f -- "${LINK_TARGET}" "${LINK_NAME}"; - fi; - done; -fi; -printf "\033[97m[ \033[92mOK \033[97m]\033[0m\n"; - -# vim:filetype=sh diff --git a/subr/build.subr b/subr/build.subr index 2a9f80fa..66e45f65 100644 --- a/subr/build.subr +++ b/subr/build.subr @@ -64,7 +64,7 @@ clean_prefix() { }; copy_etc() { - tar -C etc -cpf - midipix_check.sh midipix.sh README midipix_shortcut.vbs |\ + tar -C etc -cpf - midipix.sh README midipix_shortcut.vbs |\ tar -C ${PREFIX} -xpf -; chmod +x ${PREFIX}/midipix.sh; }; |