This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deb package description on CMake < 3.16 (#8)
- Loading branch information
Showing
6 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
function(read_deb_description_from_file FILE_PATH OUTVAR) | ||
file(READ "${FILE_PATH}" _desc) | ||
|
||
# Strip trailing whitespace. | ||
string(REGEX REPLACE "\r?\n[ \r\n]*$" "" _desc "${_desc}") | ||
|
||
if (CMAKE_VERSION VERSION_LESS "3.16.0") | ||
# Debian package descriptions with multiple lines need a single leading | ||
# space for every line after the first one. Prior to CMake 3.16, CPack's | ||
# deb generator did not do any special processing to multi-line | ||
# descriptions, which means you have to do this yourself. | ||
# | ||
# See CMake 3.16.0's release notes: | ||
# https://cmake.org/cmake/help/latest/release/3.16.html#cpack | ||
# and this windows-fido-bridge GitHub issue: | ||
# https://github.com/mgbowen/windows-fido-bridge/issues/8. | ||
string(REGEX REPLACE "(\r?\n)" "\\1 " _desc "${_desc}") | ||
endif() | ||
|
||
set(${OUTVAR} "${_desc}" PARENT_SCOPE) | ||
endfunction() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
an OpenSSH security key middleware for WSL (for OpenSSH sk-api v@SK_API_VERSION@) | ||
windows-fido-bridge is an OpenSSH security key middleware that allows you | ||
to use a FIDO2/U2F security key (e.g. a YubiKey) to SSH into a remote server | ||
from WSL. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
an OpenSSH security key middleware for WSL (skapi version selection shim) | ||
windows-fido-bridge is an OpenSSH security key middleware that allows you | ||
to use a FIDO2/U2F security key (e.g. a YubiKey) to SSH into a remote server | ||
from WSL. |