Added file to give general flow for single utility compile
This commit is contained in:
parent
8945a8922f
commit
1d5170bf10
1 changed files with 24 additions and 0 deletions
24
generic_install.sh
Normal file
24
generic_install.sh
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
BUILD_LOCATION=/avfs/backend
|
||||
INSTALL_LOCATION=/avfs/projects/ops
|
||||
mkdir -p ${BUILD_LOCATION}
|
||||
mkdir -p ${INSTALL_LOCATION}
|
||||
|
||||
## INSTALL ${PROGRAM} FROM SOURCE
|
||||
PROGRAM_BUILD_DIR=${BUILD_LOCATION}/${PROGRAM}
|
||||
PROGRAM_INSTALL_DIR=${INSTALL_LOCATION}/${PROGRAM}
|
||||
mkdir -p ${PROGRAM_BUILD_DIR}
|
||||
mkdir -p ${PROGRAM_INSTALL_DIR}
|
||||
|
||||
PROGRAM_VERSION=1.1.1w
|
||||
|
||||
cd ${PROGRAM_BUILD_DIR}
|
||||
wget -c [website]
|
||||
tar -xf ${PROGRAM}-${PROGRAM_VERSION}.tar.gz
|
||||
cd ${PROGRAM}-${PROGRAM_VERSION}
|
||||
mkdir build && cd build
|
||||
../config --prefix=${PROGRAM_INSTALL_DIR}/${PROGRAM_VERSION}
|
||||
make -j$(nproc)
|
||||
make -j$(nproc) test
|
||||
make install
|
||||
Loading…
Add table
Add a link
Reference in a new issue