mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-23 01:51:54 +00:00
modified depending on comments
This commit is contained in:
parent
c15b527523
commit
682270f20d
7
build.sh
7
build.sh
@ -2,10 +2,11 @@
|
||||
|
||||
pkgname=$1
|
||||
cur_path=$(dirname "$0")
|
||||
if [ "$pkgname" = "ipmitool" ]; then
|
||||
$cur_path/ipmitool/build.sh
|
||||
if [ "$pkgname" ]; then
|
||||
$cur_path/$pkgname/build.sh
|
||||
exit $?
|
||||
elif [ -z $pkgname ]; then
|
||||
else
|
||||
# TODO: if not specify, build all packages for xcat-dep
|
||||
echo "Please specify package want to build"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -15,7 +15,8 @@ build_dir=${DEST:-/${pkgname}_build}
|
||||
XCAT_BUILD_DISTRO="$(check_linux_distro)"
|
||||
echo "[INFO] Start to build $pkgname on $XCAT_BUILD_DISTRO"
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
cur_path=$(dirname "$0")
|
||||
cd $cur_path
|
||||
|
||||
XCAT_BUILD_DISTRO="$(check_linux_distro)"
|
||||
case "${XCAT_BUILD_DISTRO}" in
|
||||
|
Loading…
Reference in New Issue
Block a user