mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 02:52:07 +00:00
Add deb packaging of imgutil
This commit is contained in:
parent
8ec836f492
commit
ede941c0d9
24
imgutil/builddeb
Executable file
24
imgutil/builddeb
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
VERSION=`git describe|cut -d- -f 1`
|
||||
NUMCOMMITS=`git describe|cut -d- -f 2`
|
||||
if [ "$NUMCOMMITS" != "$VERSION" ]; then
|
||||
VERSION=$VERSION.dev$NUMCOMMITS.g`git describe|cut -d- -f 3`
|
||||
fi
|
||||
mkdir -p /tmp/confluent-imgutil
|
||||
cp -a * /tmp/confluent-imgutil
|
||||
cp ../LICENSE /tmp/confluent-imgutil
|
||||
cd /tmp/confluent-imgutil
|
||||
rm -rf deb/confluent_imgutil_$VERSION/
|
||||
mkdir -p deb/confluent_imgutil_$VERSION/DEBIAN/
|
||||
mkdir -p deb/confluent_imgutil_$VERSION/opt/confluent/lib/imgutil
|
||||
mkdir -p deb/confluent_imgutil_$VERSION/opt/confluent/bin
|
||||
mv imgutil deb/confluent_imgutil_$VERSION/opt/confluent/bin/
|
||||
chmod a+x deb/confluent_imgutil_$VERSION/opt/confluent/bin/imgutil
|
||||
mv ubuntu* suse15 el7 el9 el8 deb/confluent_imgutil_$VERSION/opt/confluent/lib/imgutil/
|
||||
mkdir -p deb/confluent_imgutil_$VERSION/opt/confluent/share/licenses/confluent_imgutil
|
||||
cp LICENSE deb/confluent_imgutil_$VERSION/opt/confluent/share/licenses/confluent_imgutil
|
||||
sed -e 's/#VERSION#/'$VERSION/ control.tmpl > deb/confluent_imgutil_$VERSION/DEBIAN/control
|
||||
dpkg-deb --build deb/lenovo_confluent_$VERSION
|
||||
if [ ! -z "$1" ]; then
|
||||
mv deb/lenovo-confluent_$VERSION.deb $1
|
||||
fi
|
Loading…
Reference in New Issue
Block a user