Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
Fix libml and libnfqueue downloads
  • Loading branch information
LionelJouin committed Mar 28, 2024
1 parent 7a2ddcf commit 6f2007b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions nfqlb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,13 @@ cmd_mkrelease() {
|| die "Incorrect version (semver) [$1]"
local ver=$1
make -C $dir/src clean
cmd_libnfqueue_download
cmd_libmnl_download
cmd_libnfqueue_download
__force=yes
cmd_libmnl_unpack
cmd_libmnl_build
cmd_libmnl_unpack
cmd_libmnl_build
cmd_libnfqueue_unpack
cmd_libnfqueue_build
make -C $dir/src VERSION=$ver -j8 static || die make
local dst=$tmp/nfqlb-$ver
mkdir -p $dst/bin $dst/lib $dst/include
Expand Down Expand Up @@ -289,11 +292,11 @@ libmnl_url=$netfilter_url/libmnl/files/$libmnl_ar
cmd_libmnl_download() {
local dstd=$ARCHIVE
test -n "$dstd" || dstd=$HOME/Downloads
if test -r $dstd/$libnfqueue_ar; then
log "Already downloaded [$dstd/$libnfqueue_ar]"
if test -r $dstd/$libmnl_ar; then
log "Already downloaded [$dstd/$libmnl_ar]"
return 0
fi
curl -L $libnfqueue_url > $dstd/$libnfqueue_ar || die curl
curl -L $libmnl_url > $dstd/$libmnl_ar || die curl
}
cmd_libmnl_unpack() {
local ar=$ARCHIVE/$libmnl_ar
Expand Down

0 comments on commit 6f2007b

Please sign in to comment.