1.99.33
This commit is contained in:
parent
fa931bf692
commit
dbb8c0d41c
18
CMakeLists.txt
Normal file
18
CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
cmake_minimum_required(VERSION 3.6)
|
||||
project(myx-cmake VERSION 1.99.30 LANGUAGES)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
file(WRITE ${CMAKE_SOURCE_DIR}/MyxCMake/MyxCMakeConfigVersion.cmake
|
||||
"set(MYX_CMAKE_PACKAGE_VERSION \"${PROJECT_VERSION}\")\n"
|
||||
"if(MYX_CMAKE_PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)\n"
|
||||
" set(PACKAGE_VERSION_COMPATIBLE FALSE)\n"
|
||||
"else()\n"
|
||||
" set(PACKAGE_VERSION_COMPATIBLE TRUE)\n"
|
||||
" if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)\n"
|
||||
" set(PACKAGE_VERSION_EXACT TRUE)\n"
|
||||
" endif()\n"
|
||||
"endif()\n"
|
||||
)
|
||||
|
||||
install(DIRECTORY MyxCMake DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake")
|
||||
|
@ -1,4 +1,4 @@
|
||||
set(MYX_CMAKE_PACKAGE_VERSION "1.99.21")
|
||||
set(MYX_CMAKE_PACKAGE_VERSION "1.99.33")
|
||||
if(MYX_CMAKE_PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
else()
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
```cmake
|
||||
if(MYX_CMAKE_USE_SYSTEM)
|
||||
find_package(MyxCMake 1.99.21 REQUIRED)
|
||||
find_package(MyxCMake 1.99.33 REQUIRED)
|
||||
else()
|
||||
include(${PROJECT_SOURCE_DIR}/cmake/myx/MyxCMakeConfig.cmake)
|
||||
endif()
|
||||
|
1
VERSION.txt
Normal file
1
VERSION.txt
Normal file
@ -0,0 +1 @@
|
||||
1.99.33
|
28
create_release.sh
Executable file
28
create_release.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
V=$(cat VERSION.txt)
|
||||
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"
|
||||
|
||||
git commit -a
|
||||
git tag $V
|
||||
|
6
debian/changelog
vendored
Normal file
6
debian/changelog
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
myx-cmake (0.1.0-1) unstable; urgency=medium
|
||||
|
||||
* New version.
|
||||
|
||||
-- Andrey Astafyev <dpkg@246060.ru> Wed, 08 Dec 2021 14:23:03 +0300
|
||||
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
9
|
15
debian/control
vendored
Normal file
15
debian/control
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
Source: myx-cmake
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: Andrey Astafyev <dev@246060.ru>
|
||||
Build-Depends: debhelper (>= 9), cmake
|
||||
Standards-Version: 4.2.0
|
||||
|
||||
Package: myx-cmake
|
||||
Architecture: all
|
||||
Section: utils
|
||||
Depends: cmake
|
||||
Recommends: cmake-format
|
||||
Description: CMake functions library
|
||||
CMake functions library
|
||||
|
9
debian/rules
vendored
Executable file
9
debian/rules
vendored
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@ --buildsystem=cmake
|
||||
|
||||
override_dh_fixperms:
|
||||
dh_fixperms
|
||||
# find debian -name asan-wrapper -print0 | xargs -0 chmod +x
|
||||
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
4
debian/source/options
vendored
Normal file
4
debian/source/options
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
compression = "xz"
|
||||
compression-level = 9
|
||||
extend-diff-ignore = "(^l10n\/.*ts)$"
|
||||
|
Loading…
Reference in New Issue
Block a user