myx-cmake/build_deb.sh

22 lines
432 B
Bash
Raw Permalink 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/')
2022-04-08 12:01:01 +00:00
D=build
2021-12-08 11:32:04 +00:00
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
2022-04-08 12:01:01 +00:00
2021-12-08 11:32:04 +00:00
cp -ap debian "$D/myx-cmake-$V"
pushd "$D/myx-cmake-$V"
dch -D unstable -v "${V}-1" -m "New version."
2022-04-08 11:44:04 +00:00
dpkg-buildpackage -us -uc
2021-12-08 11:32:04 +00:00
popd
2022-04-08 12:01:01 +00:00
rm -rf "$D/myx-cmake-$V"
2021-12-08 11:32:04 +00:00