scripts/rebuild-rhel-kernel-rpm: Fix for invocation from current directory (merge r5744 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5826 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2014-10-03 12:10:28 +00:00
parent 40ce174457
commit 3af3b655db

View File

@@ -40,6 +40,7 @@ scriptdir="$(dirname "$0")"
if [ "${scriptdir:0:1}" != "/" ]; then
scriptdir="$PWD/${scriptdir}"
fi
scriptdir="${scriptdir%/.}"
source "${scriptdir}/rhel-rpm-functions"
scst_dir="$(dirname "$scriptdir")"
downloaddir=$HOME/software/downloads
@@ -144,7 +145,31 @@ fi
log "Installing prerequisites"
if $install_prerequisites; then
sudo yum install -y -q asciidoc binutils-devel elfutils-libelf-devel hmaccalc ncurses-devel newt-devel patchutils 'perl(ExtUtils::Embed)' python-devel redhat-rpm-config rpmdevtools rng-tools rpm-build unifdef wget xmlto yum-utils zlib-devel
for p in \
asciidoc \
audit-libs-devel \
binutils-devel \
elfutils-devel \
elfutils-libelf-devel \
hmaccalc \
ncurses-devel \
newt-devel \
patchutils \
numactl-devel \
pciutils-devel \
'perl(ExtUtils::Embed)' \
pesign \
python-devel \
redhat-rpm-config \
rng-tools \
rpm-build \
rpmdevtools \
unifdef \
wget \
xmlto \
yum-utils \
zlib-devel \
; do sudo yum install -y -q "$p"; done
fi
rc=$?; if [ $rc != 0 ]; then exit $rc; fi