Skip to content

Commit

Permalink
Improve deb build script to detect pkg name
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Jul 19, 2023
1 parent 1155b77 commit d22ca10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/build-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ fi
sed -i "s/VERSION = 1.0.0/VERSION = $version/g" debian/rules
sed -i "s/1.0-0/$version/g" debian/changelog

pkg_name=$(grep "Package: " debian/control | sed 's/Package: //')

apt-get build-dep -y .
dpkg-buildpackage -us -uc -b

mkdir $workdir/pkg
mv ../calaos-container_*.deb $workdir/pkg
mv ../"{$pkg_name}"_*.deb $workdir/pkg

0 comments on commit d22ca10

Please sign in to comment.