From b5edf8c496d4d5fa5456858bcc52b1d9357e8d27 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Fri, 29 Oct 2021 15:23:05 -0500 Subject: [PATCH] move apps to new build dir --- functions/utility.function | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index deac463..3b33f2d 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -1,3 +1,6 @@ +BUILDDIR=$HOME/.bap-source-files +mkdir -p ${BUILDDIR} + ################################## # DIPOLE CALC ################################## @@ -185,7 +188,7 @@ by connecting to the internet or attaching a GPS" \ # PISTATS ################################## PISTATS() { - cd ${HOME} || return + cd ${BUILDDIR} || return CUR=$(curl http://www.w1hkj.com/PI/pistats.html | grep tgz | sed 's/^.*href="//;s/">.*//') wget http://www.w1hkj.com/PI/${CUR} tar -xzvf ${CUR} @@ -194,10 +197,11 @@ PISTATS() { cd ${PISTATDIR} || return sudo apt-get install -y libfltk1.3-dev make + make clean sudo mv pistats /usr/local/bin - sudo mv ${HOME}/${PISTATDIR}/data/pistats.desktop /usr/share/applications/ + sudo mv ${BUILDDIR}/${PISTATDIR}/data/pistats.desktop /usr/share/applications/ cd ${HOME} || return - rm -rf "${PISTATDIR}" + } ##################################