myx/create_release.sh

34 lines
720 B
Bash
Raw Normal View History

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
2022-10-03 08:16:03 +00:00
git tag -d $V
git push --all
2022-10-04 03:59:45 +00:00
tea r c --repo cmake/myx -t $V --tag $V -a build/myx-cmake-$V.tar.xz