This commit is contained in:
Andrei Astafev 2022-04-08 15:01:01 +03:00
parent 8b388abe31
commit 03e537d121
3 changed files with 7 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
build
*.deb *.deb
MyxCMake/MyxCMakeConfigVersion.cmake MyxCMake/MyxCMakeConfigVersion.cmake

View File

@ -6,9 +6,7 @@ include:
smolensk15-nightly: smolensk15-nightly:
script: script:
- ./build_deb.sh - ./build_deb.sh
- mkdir build
- ls -la - ls -la
- ls -la .. - ls -la build
- mv ../*.deb build
extends: .scheduled-smolensk15 extends: .scheduled-smolensk15

View File

@ -3,16 +3,19 @@
set -e set -e
V=$(grep -i "project.*VERSION.*LANGUAGES" CMakeLists.txt | sed 's/.*VERSION \([0-9.]*\) .*/\1/') V=$(grep -i "project.*VERSION.*LANGUAGES" CMakeLists.txt | sed 's/.*VERSION \([0-9.]*\) .*/\1/')
D=$(mktemp -d "/tmp/myx-cmake.XXXXXX") D=build
mkdir -p "$D/myx-cmake-$V" mkdir -p "$D/myx-cmake-$V"
cp -ap CMakeLists.txt MyxCMake "$D/myx-cmake-$V" cp -ap CMakeLists.txt MyxCMake "$D/myx-cmake-$V"
pushd "$D" pushd "$D"
tar Jcf "myx-cmake_${V}.orig.tar.xz" "myx-cmake-$V" tar Jcf "myx-cmake_${V}.orig.tar.xz" "myx-cmake-$V"
popd popd
cp -ap debian "$D/myx-cmake-$V" cp -ap debian "$D/myx-cmake-$V"
pushd "$D/myx-cmake-$V" pushd "$D/myx-cmake-$V"
dch -D unstable -v "${V}-1" -m "New version." dch -D unstable -v "${V}-1" -m "New version."
dpkg-buildpackage -us -uc dpkg-buildpackage -us -uc
popd popd
cp -f ${D}/myx*deb .
rm -rf "$D/myx-cmake-$V"