contrib/makerepo: update makerepo.sh to detect NetworkManager source directory

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-02-27 21:26:03 +01:00
parent d060be7f07
commit ad848122cf

View file

@ -7,9 +7,6 @@ die() {
exit 1
}
DIRNAME=NetworkManager-0.9.9.0
if grep -q '^NAME="Red Hat Enterprise Linux' /etc/os-release ; then
FEDPKG=rhpkg
else
@ -96,6 +93,8 @@ srcdir="$(dirname "$(readlink -f "$0")")"
# generate the clean dir
$FEDPKG prep || die "error while \`$FEDPKG prep\`"
DIRNAME="$(basename "$(ls -1d NetworkManager-[0-9].*/ || die "could not find directory")")"
pushd "$DIRNAME"
git init .
# if you have a local clone of NetworkManager, symlink