2021-12-08 11:32:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2021-12-09 11:41:26 +00:00
|
|
|
V=$(grep -i "project.*VERSION.*LANGUAGES" CMakeLists.txt | sed 's/.*VERSION \([0-9.]*\) .*/\1/')
|
2021-12-08 11:32:04 +00:00
|
|
|
D=$(mktemp -d "/tmp/myx-cmake.XXXXXX")
|
|
|
|
mkdir -p "$D/myx-cmake-$V"
|
|
|
|
cp -ap CMakeLists.txt MyxCMake "$D/myx-cmake-$V"
|
|
|
|
pushd "$D"
|
|
|
|
tar Jcf "myx-cmake_${V}.orig.tar.xz" "myx-cmake-$V"
|
|
|
|
popd
|
|
|
|
cp -ap debian "$D/myx-cmake-$V"
|
|
|
|
pushd "$D/myx-cmake-$V"
|
|
|
|
dch -D unstable -v "${V}-1" -m "New version."
|
2021-12-20 09:28:15 +00:00
|
|
|
debuild --no-sign
|
2021-12-08 11:32:04 +00:00
|
|
|
popd
|
2021-12-09 11:41:26 +00:00
|
|
|
cp -f ${D}/myx*deb .
|
2021-12-08 11:32:04 +00:00
|
|
|
|