mirror of
https://github.com/eosswedenorg/eth-healthcheck
synced 2026-06-18 05:20:02 +02:00
Inital Commit
This commit is contained in:
commit
0d27205c7c
15 changed files with 472 additions and 0 deletions
36
scripts/pkg.sh
Executable file
36
scripts/pkg.sh
Executable file
|
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
############################
|
||||
# Exported variables. #
|
||||
############################
|
||||
|
||||
export BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "$0 <pkg_type> <build_dir>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PKG_TYPE=$1
|
||||
BUILD_DIR=$2
|
||||
|
||||
PKG_SCRIPT="${BASE_DIR}/pkg_${PKG_TYPE}.sh"
|
||||
|
||||
# Check and call script
|
||||
if [ ! -x $PKG_SCRIPT ]; then
|
||||
echo "$PKG_SCRIPT not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Info
|
||||
set -o allexport
|
||||
source ${BUILD_DIR}/pkg_info
|
||||
set +o allexport
|
||||
|
||||
# Directories.
|
||||
export PACKAGE_BINDIR=${PACKAGE_PREFIX}/bin
|
||||
export PACKAGE_SHAREDIR=${PACKAGE_PREFIX}/share/${PACKAGE_NAME}
|
||||
export PACKAGE_TMPDIR="${BUILD_DIR}/pkg_${PKG_TYPE}"
|
||||
export BUILD_DIR
|
||||
|
||||
$PKG_SCRIPT
|
||||
Loading…
Add table
Add a link
Reference in a new issue