mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 14:38:09 +02:00
contrib/makerepo: update makerepo.sh to detect NetworkManager source directory
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
d060be7f07
commit
ad848122cf
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue