myx-cmake/build_deb.sh

19 lines
438 B
Bash
Raw Normal View History

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."
debuild
popd
2021-12-09 11:41:26 +00:00
cp -f ${D}/myx*deb .
2021-12-08 11:32:04 +00:00