Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-08-19 02:04:53 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-08-19 03:12:11 +0300
commit94324625fe4b40b36c96702c2462ff40f029c255 (patch)
tree9b7e6ead6d670b1e007fd48acb6449c8c931d55f /win/_base.sh
parent4ffc1cf8b6216a56954b868ec60c9fb6f5113d21 (diff)
WindowsBuild: Install Gajim as a python package
Diffstat (limited to 'win/_base.sh')
-rw-r--r--win/_base.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/win/_base.sh b/win/_base.sh
index b2f8d662b..49f2826ad 100644
--- a/win/_base.sh
+++ b/win/_base.sh
@@ -29,6 +29,7 @@ function set_build_root {
BUILD_ROOT="$1"
REPO_CLONE="${BUILD_ROOT}/${MINGW}"/gajim
MINGW_ROOT="${BUILD_ROOT}/${MINGW}"
+ PACKAGE_DIR="${BUILD_ROOT}/${MINGW}/lib/python3.6/site-packages"
}
set_build_root "${DIR}/_build_root"
@@ -120,8 +121,10 @@ pillow
function install_gajim {
[ -z "$1" ] && (echo "Missing arg"; exit 1)
+ rm -Rf "${PACKAGE_DIR}/gajim"
rm -Rf "${REPO_CLONE}"
git clone "${DIR}"/.. "${REPO_CLONE}"
+ mv "${REPO_CLONE}/gajim" "${PACKAGE_DIR}"
(cd "${REPO_CLONE}" && git checkout "$1") || exit 1
@@ -186,6 +189,7 @@ function cleanup_install {
-exec rm -f {} \;
rm -Rf "${REPO_CLONE}"/.git
+ rm -Rf "${REPO_CLONE}"/.gitlab-ci.yml
rm -Rf "${REPO_CLONE}"/debian
rm -Rf "${REPO_CLONE}"/doc
rm -Rf "${REPO_CLONE}"/m4
@@ -313,7 +317,7 @@ function cleanup_install {
find "${MINGW_ROOT}"/bin -name "*.pyo" -exec rm -f {} \;
find "${MINGW_ROOT}"/bin -name "*.pyc" -exec rm -f {} \;
build_compileall -q "${MINGW_ROOT}"
- find "${MINGW_ROOT}" -name "*.py" ! -name "gajim.py" ! -name "history_manager.py" ! -name "*theme.py" -exec rm -f {} \;
+ find "${MINGW_ROOT}" -name "*.py" ! -name "*theme.py" -exec rm -f {} \;
find "${MINGW_ROOT}"/bin -name "*.pyc" -exec rm -f {} \;
find "${MINGW_ROOT}" -type d -name "__pycache__" -prune -exec rm -rf {} \;