Skip to content

Commit

Permalink
tools/updates.sh: Run configure
Browse files Browse the repository at this point in the history
-Run `./configure --disable-interactive --development` during update script, before running make.
-Remove colors from script (not needed)
  • Loading branch information
siniStar7 committed Jan 1, 2024
1 parent 881ba6f commit 3f8866e
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions tools/updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,31 @@
# The location of the InspIRCd config directory.
INSPIRCD_DIR="/home/user/inspircd/"

YELLOW='\033[0;33m'
GRAY='\033[0;37m'
GREEN='\033[1;32m'
RED='\033[1;31m'

cd ${INSPIRCD_DIR}
echo "${GRAY}*** Entering ${INSPIRCD_DIR} ${GRAY}"
echo "${YELLOW}--- Pulling any available updates... "
echo "*** Entering ${INSPIRCD_DIR}"
echo "*** Pulling any available updates... "
git pull

echo "${GREEN}*** Updates pulled from git, preparing to build...${GRAY}"
echo "*** Updates pulled from git, preparing to build..."

if [ "$1" != "" ]; then
echo "${YELLOW}--- Pulling contrib module: $1 "
echo "--- Pulling contrib module: $1 "
./modulemanager install $1
fi

if [ "$2" != "" ]; then
echo "${YELLOW}--- Pulling contrib module: $2 "
echo "--- Pulling contrib module: $2 "
./modulemanager install $2
fi

if [ "$3" != "" ]; then
echo "${YELLOW}--- Pulling contrib module: $3 "
echo "--- Pulling contrib module: $3 "
./modulemanager install $3
fi

./configure --disable-interactive --development

make ; make install

echo "${GREEN}*** Building: Issuing Make and Make install commands..${GRAY}"
echo "*** Building: Issuing Make and Make install commands.."

0 comments on commit 3f8866e

Please sign in to comment.