2020-05-04 19:49:46 +00:00
|
|
|
VERSION=`git describe|cut -d- -f 1`
|
|
|
|
NUMCOMMITS=`git describe|cut -d- -f 2`
|
|
|
|
if [ "$NUMCOMMITS" != "$VERSION" ]; then
|
2024-09-04 14:19:11 +00:00
|
|
|
LASTNUM=$(echo $VERSION|rev|cut -d . -f 1|rev)
|
|
|
|
LASTNUM=$((LASTNUM+1))
|
|
|
|
FIRSTPART=$(echo $VERSION|rev|cut -d . -f 2- |rev)
|
|
|
|
VERSION=${FIRSTPART}.${LASTNUM}
|
|
|
|
VERSION=$VERSION~dev$NUMCOMMITS+`git describe|cut -d- -f 3`
|
2020-05-04 19:49:46 +00:00
|
|
|
fi
|
2020-05-04 19:47:39 +00:00
|
|
|
sed -e "s/#VERSION#/$VERSION/" confluent_osdeploy.spec.tmpl > confluent_osdeploy.spec
|
|
|
|
cd ..
|
2022-04-26 12:16:12 +00:00
|
|
|
cp ../LICENSE .
|
|
|
|
tar Jcvf confluent_osdeploy.tar.xz confluent_osdeploy
|
2020-05-04 19:49:46 +00:00
|
|
|
mv confluent_osdeploy.tar.xz ~/rpmbuild/SOURCES/
|
2020-05-04 19:47:39 +00:00
|
|
|
cd -
|
2021-10-07 13:18:24 +00:00
|
|
|
mkdir -p el9bin/opt/confluent/bin
|
|
|
|
mkdir -p el9bin/stateless-bin
|
2023-04-04 13:44:04 +00:00
|
|
|
podman run --privileged --rm -v $(pwd)/utils:/buildutils -i -t fedorabuild make -C /buildutils
|
2021-10-07 13:18:24 +00:00
|
|
|
cd utils
|
2023-04-04 15:27:50 +00:00
|
|
|
cp confluent_imginfo copernicus clortho autocons ../el9bin/opt/confluent/bin
|
|
|
|
cp start_root urlmount ../el9bin/stateless-bin/
|
2021-10-07 13:18:24 +00:00
|
|
|
make clean
|
|
|
|
cd ..
|
2023-04-04 14:19:13 +00:00
|
|
|
mkdir -p el8bin/opt/confluent/bin
|
|
|
|
mkdir -p el8bin/stateless-bin
|
2023-04-07 20:50:20 +00:00
|
|
|
podman run --privileged --rm -v $(pwd)/utils:/buildutils -i -t el7build make -C /buildutils
|
2023-04-04 14:19:13 +00:00
|
|
|
cd utils
|
2023-04-04 15:27:50 +00:00
|
|
|
cp confluent_imginfo copernicus clortho autocons ../el8bin/opt/confluent/bin
|
|
|
|
cp start_root urlmount ../el8bin/stateless-bin/
|
2023-04-04 14:19:13 +00:00
|
|
|
make clean
|
|
|
|
cd ..
|
2021-10-07 13:18:24 +00:00
|
|
|
tar Jcvf confluent_el9bin.tar.xz el9bin/
|
2023-04-04 14:19:13 +00:00
|
|
|
tar Jcvf confluent_el8bin.tar.xz el8bin/
|
|
|
|
mv confluent_el8bin.tar.xz ~/rpmbuild/SOURCES/
|
2023-04-04 15:55:23 +00:00
|
|
|
mv confluent_el9bin.tar.xz ~/rpmbuild/SOURCES/
|
2021-10-07 13:18:24 +00:00
|
|
|
rm -rf el9bin
|
2023-04-04 14:19:13 +00:00
|
|
|
rm -rf el8bin
|
2020-05-04 19:47:39 +00:00
|
|
|
rpmbuild -ba confluent_osdeploy.spec
|