2022-10-02 01:04:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-10-03 08:00:41 +00:00
|
|
|
V=$(cat VERSION)
|
2022-10-02 01:04:01 +00:00
|
|
|
D=build
|
|
|
|
|
|
|
|
sed -i "s/CMake.*REQ/CMake $V REQ/" README.md
|
|
|
|
sed -i "s/VERSION \".*\"/VERSION \"$V\"/" MyxCMakeConfigVersion.cmake
|
|
|
|
|
|
|
|
mkdir -p "$D/myx-cmake-$V/MyxCMake"
|
|
|
|
cp -ap CMakeLists.txt "$D/myx-cmake-$V"
|
|
|
|
cp -ap *.cmake lib backports "$D/myx-cmake-$V/MyxCMake"
|
|
|
|
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."
|
|
|
|
dpkg-buildpackage -us -uc
|
|
|
|
popd
|
|
|
|
|
|
|
|
rm -rf "$D/myx-cmake-$V"
|
|
|
|
|
2022-10-02 01:08:08 +00:00
|
|
|
tar acf "$D/myx-cmake-$V.tar.xz" lib backports *.cmake
|
|
|
|
|
2022-10-02 01:04:01 +00:00
|
|
|
git commit -a
|
|
|
|
git tag $V
|
2022-10-03 08:02:46 +00:00
|
|
|
git push --tags
|
|
|
|
tea r c -t $V --tag $V -a build/myx-cmake-$V.tar.xz
|