From ffa2505450f77442a11d14fdc80031f47a649836 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Tue, 23 Oct 2012 15:23:48 +0900 Subject: [PATCH] add install script --- plugins/python-build/install.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 plugins/python-build/install.sh diff --git a/plugins/python-build/install.sh b/plugins/python-build/install.sh new file mode 100755 index 00000000..8b7a874b --- /dev/null +++ b/plugins/python-build/install.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +if [ -z "${PREFIX}" ]; then + PREFIX="/usr/local" +fi + +BIN_PATH="${PREFIX}/bin" +SHARE_PATH="${PREFIX}/share/python-build" + +mkdir -p "${BIN_PATH}" +mkdir -p "${SHARE_PATH}" + +for file in bin/*; do + cp "${file}" "${BIN_PATH}" +done + +for file in share/python-build/*; do + cp "${file}" "${SHARE_PATH}" +done + +echo "Installed python-build at ${PREFIX}"