forked from openkylin/editorconfig-core
Compare commits
1 Commits
upstream
...
openkylin/
Author | SHA1 | Date |
---|---|---|
rtlhq | 46a37e9d38 |
|
@ -0,0 +1,5 @@
|
|||
editorconfig-core (0.12.5-2.2ok1) yangtze; urgency=medium
|
||||
|
||||
* Build for openkylin.
|
||||
|
||||
-- rtlhq <nobelxyz@163.com> Tue, 13 Sep 2022 15:49:05 +0800
|
|
@ -0,0 +1,100 @@
|
|||
Source: editorconfig-core
|
||||
Section: libs
|
||||
Priority: optional
|
||||
Build-Depends:
|
||||
cmake,
|
||||
d-shlibs,
|
||||
debhelper-compat (= 13),
|
||||
doxygen,
|
||||
libpcre2-dev,
|
||||
libjs-jquery,
|
||||
pkg-config,
|
||||
pkg-kde-tools,
|
||||
Maintainer: openKylin KDE SIG <kde@lists.openkylin.top>
|
||||
Uploaders: rtlhq <nobelxyz@163.com>
|
||||
Standards-Version: 4.6.0
|
||||
Homepage: http://editorconfig.org/
|
||||
Vcs-Git: https://gitee.com/openkylin/editorconfig-core.git
|
||||
Vcs-Browser: https://gitee.com/openkylin/editorconfig-core
|
||||
Rules-Requires-Root: no
|
||||
|
||||
Package: libeditorconfig0
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends},
|
||||
${misc:Depends}
|
||||
Pre-Depends: ${misc:Pre-Depends},
|
||||
Multi-Arch: same
|
||||
Description: coding style indenter across editors - library
|
||||
EditorConfig helps developers define and maintain
|
||||
consistent coding styles between different editors and IDEs.
|
||||
The EditorConfig project consists of a file format
|
||||
for defining coding styles
|
||||
and a collection of text editor plugins
|
||||
that enable editors to read the file format
|
||||
and adhere to defined styles.
|
||||
.
|
||||
EditorConfig files are easily readable
|
||||
and they work nicely with version control systems.
|
||||
.
|
||||
This package provides the core library of editorconfig.
|
||||
|
||||
Package: libeditorconfig-dev
|
||||
Section: libdevel
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Depends: libeditorconfig0 (= ${binary:Version}),
|
||||
${devlibs:Depends},
|
||||
${misc:Depends}
|
||||
Suggests: editorconfig-doc
|
||||
Description: coding style indenter across editors - development files
|
||||
EditorConfig helps developers define and maintain
|
||||
consistent coding styles between different editors and IDEs.
|
||||
The EditorConfig project consists of a file format
|
||||
for defining coding styles
|
||||
and a collection of text editor plugins
|
||||
that enable editors to read the file format
|
||||
and adhere to defined styles.
|
||||
.
|
||||
EditorConfig files are easily readable
|
||||
and they work nicely with version control systems.
|
||||
.
|
||||
This package provides development headers for editorconfig-core library.
|
||||
|
||||
Package: editorconfig
|
||||
Section: utils
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends},
|
||||
${misc:Depends}
|
||||
Description: coding style indenter for all editors - commandline tools
|
||||
This package helps developers define and maintain
|
||||
consistent coding styles between different editors and IDEs.
|
||||
The EditorConfig project consists of a file format
|
||||
for defining coding styles
|
||||
and a collection of text editor plugins
|
||||
that enable editors to read the file format
|
||||
and adhere to defined styles.
|
||||
.
|
||||
EditorConfig files are easily readable
|
||||
and they work nicely with version control systems.
|
||||
.
|
||||
This package provides editorconfig command which
|
||||
can be used to reformat and indent code files
|
||||
using editorconfig configuration file.
|
||||
|
||||
Package: editorconfig-doc
|
||||
Architecture: all
|
||||
Section: doc
|
||||
Depends: ${misc:Depends},
|
||||
libjs-jquery,
|
||||
Description: coding style indenter across editors - documentation
|
||||
EditorConfig helps developers define and maintain
|
||||
consistent coding styles between different editors and IDEs.
|
||||
The EditorConfig project consists of a file format
|
||||
for defining coding styles and a collection of text editor plugins
|
||||
that enable editors to read the file format
|
||||
and adhere to defined styles.
|
||||
.
|
||||
EditorConfig files are easily readable
|
||||
and they work nicely with version control systems.
|
||||
.
|
||||
This package provides API documentation for editorconfig-core library.
|
|
@ -0,0 +1,230 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: EditorConfig core
|
||||
Upstream-Contact: EditorConfig Team <http://groups.google.com/group/editorconfig>
|
||||
Issue Tracker <https://github.com/editorconfig/editorconfig/issues>
|
||||
Source: https://github.com/editorconfig/editorconfig-core-c
|
||||
git://github.com/editorconfig/editorconfig-core-c
|
||||
|
||||
Files: *
|
||||
Copyright:
|
||||
2011-2019 EditorConfig Team
|
||||
2014-2019 Hong Xu <hong@topbug.net>
|
||||
2018 Sven Strickroth <email@cs-ware.de>
|
||||
License: BSD-2-clause
|
||||
|
||||
Files: tests
|
||||
Copyright:
|
||||
2011-2018 EditorConfig Team
|
||||
2018 Christopher White (cxw42 at GitHub; http://devwrench.com)
|
||||
License: BSD-2-clause
|
||||
|
||||
Files: src/lib/ini.c
|
||||
src/lib/ini.h
|
||||
Copyright:
|
||||
2009 Brush Technology
|
||||
License: BSD-3-clause~Brush
|
||||
|
||||
Files: src/lib/misc.c
|
||||
Copyright:
|
||||
2011-2012 EditorConfig Team
|
||||
1987-1993 The Regents of the University of California
|
||||
License: BSD-2-clause and BSD-3-clause~miscount
|
||||
Comment:
|
||||
This file uses strcasecmp and strdup from FreeBSD code
|
||||
and strndup from NetBSD code base.
|
||||
These are licensed under BSD-3-clause
|
||||
and file also contains code written by Editorconfig Team
|
||||
which is licensed under BSD-2-clause.
|
||||
|
||||
Files: src/lib/utarray.h
|
||||
Copyright:
|
||||
2008-2018 Troy D. Hanson
|
||||
License: BSD-1-Clause
|
||||
|
||||
Files: CMake_Modules/FindPCRE2.cmake
|
||||
Copyright:
|
||||
2007-2009 LuaDist
|
||||
2018 Sven Strickroth <email@cs-ware.de>
|
||||
License: Expat
|
||||
|
||||
Files: debian/*
|
||||
Copyright:
|
||||
2013, 2015-2016, 2021 Jonas Smedegaard <dr@jones.dk>
|
||||
2013 Vasudev Kamath <kamathvasudev@gmail.com>
|
||||
License-Grant:
|
||||
This packaging is free software;
|
||||
you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation;
|
||||
either version 3, or (at your option) any later version.
|
||||
License: GPL-3+
|
||||
Reference: debian/copyright
|
||||
|
||||
License: BSD-1-Clause
|
||||
Redistribution and use in source and binary forms,
|
||||
with or without modification,
|
||||
are permitted
|
||||
provided that the following conditions are met:
|
||||
* Redistributions of source code must retain
|
||||
the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
.
|
||||
THIS SOFTWARE IS PROVIDED
|
||||
BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
||||
OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS;
|
||||
OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
License: BSD-2-clause
|
||||
Redistribution and use in source and binary forms,
|
||||
with or without modification,
|
||||
are permitted
|
||||
provided that the following conditions are met:
|
||||
1. Redistributions of source code must retain
|
||||
the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce
|
||||
the above copyright notice, this list of conditions
|
||||
and the following disclaimer
|
||||
in the documentation and/or other materials
|
||||
provided with the distribution.
|
||||
.
|
||||
THIS SOFTWARE IS PROVIDED
|
||||
BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
||||
OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS;
|
||||
OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
License: BSD-3-clause~miscount
|
||||
Redistribution and use in source and binary forms,
|
||||
with or without modification,
|
||||
are permitted
|
||||
provided that the following conditions are met:
|
||||
1. Redistributions of source code must retain
|
||||
the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce
|
||||
the above copyright notice, this list of conditions
|
||||
and the following disclaimer
|
||||
in the documentation and/or other materials
|
||||
provided with the distribution.
|
||||
4. Neither the name of the University
|
||||
nor the names of its contributors
|
||||
may be used to endorse or promote
|
||||
products derived from this software
|
||||
without specific prior written permission.
|
||||
.
|
||||
THIS SOFTWARE IS PROVIDED
|
||||
BY THE REGENTS AND CONTRIBUTORS ``AS IS''
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
||||
OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS;
|
||||
OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
License: BSD-3-clause~Brush
|
||||
Redistribution and use in source and binary forms,
|
||||
with or without modification,
|
||||
are permitted
|
||||
provided that the following conditions are met:
|
||||
* Redistributions of source code must retain
|
||||
the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce
|
||||
the above copyright notice, this list of conditions
|
||||
and the following disclaimer
|
||||
in the documentation and/or other materials
|
||||
provided with the distribution.
|
||||
* Neither the name of Brush Technology
|
||||
nor the names of its contributors
|
||||
may be used to endorse or promote
|
||||
products derived from this software
|
||||
without specific prior written permission.
|
||||
.
|
||||
THIS SOFTWARE IS PROVIDED BY BRUSH TECHNOLOGY ''AS IS''
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL BRUSH TECHNOLOGY BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
||||
OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS;
|
||||
OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
License: Expat
|
||||
Permission is hereby granted, free of charge,
|
||||
to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction,
|
||||
including without limitation
|
||||
the rights to use, copy, modify, merge, publish, distribute,
|
||||
sublicense, and/or sell copies of the Software,
|
||||
and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice
|
||||
shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS",
|
||||
WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO
|
||||
THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
||||
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
||||
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
License: GPL-3+
|
||||
Reference: /usr/share/common-licenses/GPL-3
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
licensecheck --check '.*' --recursive --copyright --deb-machine --ignore '^(debian/(changelog|copyright(_hints)?))$' --lines 0 -- * > debian/copyright_hints
|
|
@ -0,0 +1,127 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: FIXME
|
||||
Upstream-Contact: FIXME
|
||||
Source: FIXME
|
||||
Disclaimer: Autogenerated by licensecheck
|
||||
|
||||
Files: CHANGELOG
|
||||
CONTRIBUTING
|
||||
CONTRIBUTORS
|
||||
INSTALL.md
|
||||
appveyor.yml
|
||||
build.ps1
|
||||
debian/control
|
||||
debian/copyright-check
|
||||
debian/editorconfig-doc.doc-base
|
||||
debian/editorconfig-doc.install
|
||||
debian/editorconfig-doc.links
|
||||
debian/editorconfig.install
|
||||
debian/editorconfig.links
|
||||
debian/editorconfig.manpages
|
||||
debian/gbp.conf
|
||||
debian/libeditorconfig-dev.install
|
||||
debian/libeditorconfig-dev.manpages
|
||||
debian/libeditorconfig0.install
|
||||
debian/libeditorconfig0.symbols
|
||||
debian/patches/1001_fix_manpages.patch
|
||||
debian/patches/1002_reproducible_builds.patch
|
||||
debian/patches/2001_fix_static_libname.patch
|
||||
debian/patches/2002_fix_docs_directory.patch
|
||||
debian/patches/README
|
||||
debian/patches/series
|
||||
debian/rules
|
||||
debian/source/format
|
||||
debian/watch
|
||||
doc/Doxyfile.in
|
||||
init.ps1
|
||||
logo/logo.png
|
||||
mk-src-archive.sh
|
||||
patch.ps1
|
||||
src/lib/EditorConfigConfig.cmake.in
|
||||
src/lib/editorconfig.pc.in
|
||||
test.ps1
|
||||
Copyright: NONE
|
||||
License: UNKNOWN
|
||||
FIXME
|
||||
|
||||
Files: CMakeLists.txt
|
||||
cmake_uninstall.cmake.in
|
||||
doc/CMakeLists.txt
|
||||
include/CMakeLists.txt
|
||||
include/editorconfig/editorconfig.h
|
||||
include/editorconfig/editorconfig_handle.h
|
||||
src/CMakeLists.txt
|
||||
src/bin/CMakeLists.txt
|
||||
src/bin/main.c
|
||||
src/config.h.in
|
||||
src/lib/CMakeLists.txt
|
||||
src/lib/editorconfig.c
|
||||
src/lib/editorconfig.h
|
||||
src/lib/editorconfig_handle.c
|
||||
src/lib/editorconfig_handle.h
|
||||
src/lib/global.h
|
||||
src/lib/misc.h
|
||||
Copyright: 2011-2012, EditorConfig Team
|
||||
2011-2013, EditorConfig Team
|
||||
2011-2019, EditorConfig Team
|
||||
License: BSD-2-clause
|
||||
FIXME
|
||||
|
||||
Files: src/lib/ini.c
|
||||
src/lib/ini.h
|
||||
Copyright: 2009, Brush Technology
|
||||
License: BSD-3-clause
|
||||
FIXME
|
||||
|
||||
Files: src/lib/utarray.h
|
||||
Copyright: 2008-2018, Troy D. Hanson http://troydhanson.github.com/uthash/
|
||||
License: BSD-1-Clause
|
||||
FIXME
|
||||
|
||||
Files: src/lib/ec_glob.h
|
||||
Copyright: 2014-2019, Hong Xu <hong AT topbug DOT net>
|
||||
License: BSD-2-clause
|
||||
FIXME
|
||||
|
||||
Files: src/lib/ec_glob.c
|
||||
Copyright: 2014-2019, Hong Xu <hong AT topbug DOT net>
|
||||
2018, Sven Strickroth <email AT cs-ware DOT de>
|
||||
License: BSD-2-clause
|
||||
FIXME
|
||||
|
||||
Files: include/util.h
|
||||
Copyright: 2019, Hong Xu <hong@topbug.net>
|
||||
License: BSD-2-clause
|
||||
FIXME
|
||||
|
||||
Files: README.md
|
||||
Copyright: NONE
|
||||
License: BSD-2-clause and/or BSD-3-clause
|
||||
FIXME
|
||||
|
||||
Files: src/lib/misc.c
|
||||
Copyright: 1987, 1993, The Regents of the University of California.
|
||||
1988, 1993, The Regents of the University of California.
|
||||
2011-2012, EditorConfig Team
|
||||
License: BSD-2-clause and/or BSD-3-clause
|
||||
FIXME
|
||||
|
||||
Files: LICENSE
|
||||
Copyright: 2011-2013, EditorConfig Team, including Hong Xu and Trey Hunner
|
||||
2014, Hong Xu <hong AT topbug DOT net>
|
||||
License: BSD-2-clause and/or BSD-3-clause
|
||||
FIXME
|
||||
|
||||
Files: CMake_Modules/FindPCRE2.cmake
|
||||
Copyright: 2007-2009, LuaDist.
|
||||
2018, Sven Strickroth <email AT cs-ware DOT de>
|
||||
file distributed with LuaDist.
|
||||
License: Expat
|
||||
FIXME
|
||||
|
||||
Files: debian/source/lintian-overrides
|
||||
Copyright: debian/copyright GPL-3+
|
||||
debian/copyright gpl-3+
|
||||
License: UNKNOWN
|
||||
FIXME
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
Document: editorconfig-core
|
||||
Title: EditorConfig API Manual
|
||||
Author: EditorConfig Team
|
||||
Abstract: This manual describes APIs provided by libeditorconfig0
|
||||
Section: Programming/C++
|
||||
|
||||
Format: HTML
|
||||
Index: /usr/share/doc/editorconfig-doc/html/index.html
|
||||
Files: /usr/share/doc/editorconfig-doc/html/*.html
|
|
@ -0,0 +1 @@
|
|||
usr/share/doc/editorconfig-doc/html/
|
|
@ -0,0 +1 @@
|
|||
usr/share/javascript/jquery/jquery.js usr/share/doc/editorconfig-doc/html/jquery.js
|
|
@ -0,0 +1 @@
|
|||
usr/bin
|
|
@ -0,0 +1 @@
|
|||
usr/share/man/man1/editorconfig.1.gz usr/share/man/man1/editorconfig-0.12.5.1.gz
|
|
@ -0,0 +1,2 @@
|
|||
usr/share/man/man1/editorconfig.1
|
||||
usr/share/man/man5/editorconfig-format.5
|
|
@ -0,0 +1,9 @@
|
|||
# Configuration file for git-buildpackage and friends
|
||||
|
||||
[DEFAULT]
|
||||
pristine-tar = True
|
||||
sign-tags = True
|
||||
component = tests
|
||||
|
||||
[import-orig]
|
||||
filter = .gitignore
|
|
@ -0,0 +1,5 @@
|
|||
usr/include/*
|
||||
usr/lib/*/*.a
|
||||
usr/lib/*/*.so
|
||||
usr/lib/*/cmake/*/*.cmake
|
||||
usr/lib/*/pkgconfig/*.pc
|
|
@ -0,0 +1 @@
|
|||
usr/share/man/man3/*.3
|
|
@ -0,0 +1 @@
|
|||
usr/lib/*/*.so.*
|
|
@ -0,0 +1,17 @@
|
|||
# SymbolsHelper-Confirmed: 0.12.5 amd64 arm64 armel armhf hppa i386 powerpc ppc64 ppc64el riscv64 sh4 sparc64 x32
|
||||
libeditorconfig.so.0 libeditorconfig0 #MINVER#
|
||||
* Build-Depends-Package: libeditorconfig-dev
|
||||
ec_special_chars@Base 0.12.5
|
||||
editorconfig_get_error_msg@Base 0.11.0
|
||||
editorconfig_get_version@Base 0.11.0
|
||||
editorconfig_get_version_suffix@Base 0.11.0
|
||||
editorconfig_handle_destroy@Base 0.11.0
|
||||
editorconfig_handle_get_conf_file_name@Base 0.11.0
|
||||
editorconfig_handle_get_err_file@Base 0.11.0
|
||||
editorconfig_handle_get_name_value@Base 0.11.0
|
||||
editorconfig_handle_get_name_value_count@Base 0.11.0
|
||||
editorconfig_handle_get_version@Base 0.11.0
|
||||
editorconfig_handle_init@Base 0.11.0
|
||||
editorconfig_handle_set_conf_file_name@Base 0.11.0
|
||||
editorconfig_handle_set_version@Base 0.11.0
|
||||
editorconfig_parse@Base 0.11.0
|
|
@ -0,0 +1,21 @@
|
|||
From: Hong Xu <hong@topbug.net>
|
||||
Date: Sun, 16 Jun 2019 22:00:50 -0700
|
||||
Subject: Also test that "?" shouldn't match "/".
|
||||
|
||||
---
|
||||
tests/glob/CMakeLists.txt | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/tests/glob/CMakeLists.txt b/tests/glob/CMakeLists.txt
|
||||
index 53bbf6e..98f10b9 100644
|
||||
--- a/tests/glob/CMakeLists.txt
|
||||
+++ b/tests/glob/CMakeLists.txt
|
||||
@@ -58,6 +58,8 @@ new_ec_test(question_zero question.in som.c "^[ \t\n\r]*$")
|
||||
# does not match multiple characters
|
||||
new_ec_test(question_multiple question.in something.c "^[ \t\n\r]*$")
|
||||
|
||||
+# does not match slash
|
||||
+new_ec_test(question_slash question.in som/.c "^[ \t\n\r]*$")
|
||||
|
||||
# Tests for [ and ]
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
From: Hong Xu <hong@topbug.net>
|
||||
Date: Sun, 16 Jun 2019 22:03:52 -0700
|
||||
Subject: Rename two tests (property --> value)
|
||||
|
||||
---
|
||||
tests/parser/CMakeLists.txt | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/parser/CMakeLists.txt b/tests/parser/CMakeLists.txt
|
||||
index f50b939..1d8e621 100644
|
||||
--- a/tests/parser/CMakeLists.txt
|
||||
+++ b/tests/parser/CMakeLists.txt
|
||||
@@ -137,11 +137,11 @@ new_ec_test_multiline(octothorpe_comment_between_props_ML comments.in test10.c
|
||||
"key1=value1[ \t]*[\n\r]+key2=value2[ \t\n\r]*")
|
||||
|
||||
# test octothorpe at end of property value are included in value
|
||||
-new_ec_test(octothorpe_in_property comments.in test11.c
|
||||
+new_ec_test(octothorpe_in_value comments.in test11.c
|
||||
"^key=value# not comment[ \t\n\r]*$")
|
||||
|
||||
# test escaped octothorpes are included in property value
|
||||
-new_ec_test(escaped_octothorpe_in_property comments.in test12.c
|
||||
+new_ec_test(escaped_octothorpe_in_value comments.in test12.c
|
||||
"^key=value # not comment[ \t\n\r]*$")
|
||||
|
||||
# test escaped octothorpes are included in section names
|
24
debian/patches/0007-Remove-escaped_octothorpe_in_value-per-editorconfig-.patch
vendored
Normal file
24
debian/patches/0007-Remove-escaped_octothorpe_in_value-per-editorconfig-.patch
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
From: Hong Xu <hong@topbug.net>
|
||||
Date: Sat, 29 Jun 2019 09:58:59 -0700
|
||||
Subject: Remove escaped_octothorpe_in_value per
|
||||
editorconfig/editorconfig-vote#5
|
||||
|
||||
---
|
||||
tests/parser/CMakeLists.txt | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/tests/parser/CMakeLists.txt b/tests/parser/CMakeLists.txt
|
||||
index 1d8e621..743d797 100644
|
||||
--- a/tests/parser/CMakeLists.txt
|
||||
+++ b/tests/parser/CMakeLists.txt
|
||||
@@ -140,10 +140,6 @@ new_ec_test_multiline(octothorpe_comment_between_props_ML comments.in test10.c
|
||||
new_ec_test(octothorpe_in_value comments.in test11.c
|
||||
"^key=value# not comment[ \t\n\r]*$")
|
||||
|
||||
-# test escaped octothorpes are included in property value
|
||||
-new_ec_test(escaped_octothorpe_in_value comments.in test12.c
|
||||
- "^key=value # not comment[ \t\n\r]*$")
|
||||
-
|
||||
# test escaped octothorpes are included in section names
|
||||
new_ec_test(escaped_octothorpe_in_section comments.in "test\#.c"
|
||||
"^key=value[ \t\n\r]*$")
|
23
debian/patches/0008-Remove-escaped_semicolon_in_property-per-votes-5-and.patch
vendored
Normal file
23
debian/patches/0008-Remove-escaped_semicolon_in_property-per-votes-5-and.patch
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
From: =?utf-8?q?Jo=C3=A3o_Valverde?= <joao.valverde@tecnico.ulisboa.pt>
|
||||
Date: Wed, 9 Oct 2019 13:22:21 +0100
|
||||
Subject: Remove escaped_semicolon_in_property per votes #5 and #6
|
||||
|
||||
---
|
||||
tests/parser/CMakeLists.txt | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/tests/parser/CMakeLists.txt b/tests/parser/CMakeLists.txt
|
||||
index 743d797..c4ae83e 100644
|
||||
--- a/tests/parser/CMakeLists.txt
|
||||
+++ b/tests/parser/CMakeLists.txt
|
||||
@@ -112,10 +112,6 @@ new_ec_test_multiline(comment_between_props_ML comments.in test4.c
|
||||
new_ec_test(semicolon_in_property comments.in test5.c
|
||||
"^key=value; not comment[ \t\n\r]*$")
|
||||
|
||||
-# test escaped semicolons are included in property value
|
||||
-new_ec_test(escaped_semicolon_in_property comments.in test6.c
|
||||
- "^key=value ; not comment[ \t\n\r]*$")
|
||||
-
|
||||
# test escaped semicolons are included in section names
|
||||
new_ec_test(escaped_semicolon_in_section comments.in "test;.c"
|
||||
"^key=value[ \t\n\r]*$")
|
|
@ -0,0 +1,330 @@
|
|||
From: Chris White <cxwembedded@gmail.com>
|
||||
Date: Sun, 20 Oct 2019 20:36:21 -0400
|
||||
Subject: Fix multiline-result tests; escape backslashes
|
||||
|
||||
Fixes:
|
||||
- editorconfig/editorconfig-core-test#28
|
||||
- The warning at https://ci.appveyor.com/project/xuhdev/editorconfig-core-c/builds/28235086/job/u9ebs7f3b9u3gowk#L1660
|
||||
|
||||
Major changes:
|
||||
- Always use add_test(NAME ... COMMAND ...):
|
||||
This is for consistency - add_test(NAME ... COMMAND ...)
|
||||
escapes differently than add_test(<name> <command>...).
|
||||
- Fix backslash escaping:
|
||||
Now that we are using the add_test(NAME ... COMMAND ...) form,
|
||||
backslash escaping works differently. In my tests, backslashes
|
||||
are not collapsed in that form.
|
||||
- Specify `-C Debug` on the `ctest` command line:
|
||||
This permits the Visual Studio generator to run tests.
|
||||
---
|
||||
tests/.editorconfig | 2 +-
|
||||
tests/.gitignore | 5 ++++
|
||||
tests/CMakeLists.txt | 63 +++++++++++++++++++++++++++++++++----------
|
||||
tests/cli/CMakeLists.txt | 22 +++++++--------
|
||||
tests/cmake/runandsort.cmake | 21 ++++++++-------
|
||||
tests/filetree/CMakeLists.txt | 5 ++--
|
||||
tests/glob/CMakeLists.txt | 2 +-
|
||||
tests/meta/CMakeLists.txt | 8 +++---
|
||||
8 files changed, 85 insertions(+), 43 deletions(-)
|
||||
|
||||
diff --git a/tests/.editorconfig b/tests/.editorconfig
|
||||
index 6f73490..0a6dc95 100644
|
||||
--- a/tests/.editorconfig
|
||||
+++ b/tests/.editorconfig
|
||||
@@ -1,4 +1,4 @@
|
||||
-[CMakeLists.txt]
|
||||
+[{CMakeLists.txt,*.cmake}]
|
||||
trim_trailing_whitespace = true
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
diff --git a/tests/.gitignore b/tests/.gitignore
|
||||
index 310923b..6cad380 100644
|
||||
--- a/tests/.gitignore
|
||||
+++ b/tests/.gitignore
|
||||
@@ -11,3 +11,8 @@ CTestTestfile.cmake
|
||||
|
||||
# Eclipse
|
||||
.project
|
||||
+
|
||||
+# Editor backup files
|
||||
+~*
|
||||
+*~
|
||||
+*.swp
|
||||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||
index c4b771e..e744b1e 100644
|
||||
--- a/tests/CMakeLists.txt
|
||||
+++ b/tests/CMakeLists.txt
|
||||
@@ -24,6 +24,9 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
+# New escape-sequence processing.
|
||||
+cmake_minimum_required(VERSION 3.5)
|
||||
+cmake_policy(VERSION 3.5.1)
|
||||
|
||||
# Don't check any language compiler. This project is for EditorConfig Core
|
||||
# testing only.
|
||||
@@ -31,34 +34,42 @@ project(editorconfig-core-test NONE)
|
||||
|
||||
# Where this file lives
|
||||
set(tests_cmakelists_dir "${CMAKE_CURRENT_LIST_DIR}")
|
||||
-#message(STATUS "Tests are in ${tests_cmakelists_dir}")
|
||||
+message(STATUS "Tests are in ${tests_cmakelists_dir}")
|
||||
|
||||
# Only when we are using editorconfig-core-test independently should we check
|
||||
# cmake version, set EDITORCONFIG_CMD as cache string, and enable_testing()
|
||||
# here.
|
||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
- cmake_minimum_required(VERSION 3.5)
|
||||
set(EDITORCONFIG_CMD "editorconfig" CACHE STRING "editorconfig command.")
|
||||
+ set(EDITORCONFIG_CMD_IS_TARGET OFF CACHE BOOL
|
||||
+ "EDITORCONFIG_CMD names a CMake target rather than an executable.")
|
||||
enable_testing()
|
||||
+ message(STATUS "tests: Standalone testing enabled")
|
||||
+endif()
|
||||
+
|
||||
+if(${EDITORCONFIG_CMD_IS_TARGET})
|
||||
+ message(STATUS "tests: Using editorconfig target ${EDITORCONFIG_CMD}")
|
||||
+else()
|
||||
+ message(STATUS "tests: Using editorconfig binary ${EDITORCONFIG_CMD}")
|
||||
endif()
|
||||
|
||||
# The most common test function
|
||||
function(new_ec_test name ec_file src_file regex)
|
||||
- add_test(${name} ${EDITORCONFIG_CMD} -f ${ec_file}
|
||||
+ add_test(NAME ${name} COMMAND ${EDITORCONFIG_CMD} -f ${ec_file}
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/${src_file}")
|
||||
set_tests_properties(${name} PROPERTIES PASS_REGULAR_EXPRESSION "${regex}")
|
||||
endfunction()
|
||||
|
||||
-# The tests that requires version specified
|
||||
+# A test that requires a version specified
|
||||
function(new_ec_test_version name ec_file src_file regex version)
|
||||
- add_test(${name} ${EDITORCONFIG_CMD} -b ${version} -f ${ec_file}
|
||||
+ add_test(NAME ${name} COMMAND ${EDITORCONFIG_CMD} -b ${version} -f ${ec_file}
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/${src_file}")
|
||||
set_tests_properties(${name} PROPERTIES PASS_REGULAR_EXPRESSION "${regex}")
|
||||
endfunction()
|
||||
|
||||
-# The tests that requires the full path EditorConfig files
|
||||
+# A test that requires the full path to the EditorConfig files
|
||||
function(new_ec_test_full_ec_file_path name ec_file src_file regex)
|
||||
- add_test(${name} ${EDITORCONFIG_CMD} -f ${ec_file} "${src_file}")
|
||||
+ add_test(NAME ${name} COMMAND ${EDITORCONFIG_CMD} -f ${ec_file} ${src_file})
|
||||
set_tests_properties(${name} PROPERTIES PASS_REGULAR_EXPRESSION "${regex}")
|
||||
endfunction()
|
||||
|
||||
@@ -67,18 +78,42 @@ endfunction()
|
||||
function(new_ec_test_multiline name ec_file src_file regex)
|
||||
#message(STATUS "Building multiline test ${name} with tests_cmakelists_dir ${tests_cmakelists_dir}")
|
||||
#message(STATUS "List dir ${CMAKE_CURRENT_LIST_DIR}, source dir ${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
- add_test(${name} "cmake"
|
||||
- "-D" "EDITORCONFIG_CMD=${EDITORCONFIG_CMD}"
|
||||
- # Since variables aren't autpmatically passed to the inner cmake
|
||||
- "-D" "ECARGS:LIST=-f;${ec_file};${CMAKE_CURRENT_SOURCE_DIR}/${src_file}"
|
||||
- # Note: the semicolons separate list elements.
|
||||
- "-P" "${tests_cmakelists_dir}/cmake/ec_sort.cmake")
|
||||
+ if(${EDITORCONFIG_CMD_IS_TARGET})
|
||||
+ add_test(NAME ${name} COMMAND "cmake"
|
||||
+ "-D" "EDITORCONFIG_CMD=$<TARGET_FILE:${EDITORCONFIG_CMD}>"
|
||||
+ # Since variables aren't automatically passed to the inner cmake
|
||||
+ "-D" "ECARGS:LIST=-f;${ec_file};${CMAKE_CURRENT_SOURCE_DIR}/${src_file}"
|
||||
+ # Note: the semicolons separate list elements.
|
||||
+ "-P" "${tests_cmakelists_dir}/cmake/ec_sort.cmake")
|
||||
+ else()
|
||||
+ add_test(NAME ${name} COMMAND "cmake"
|
||||
+ "-D" "EDITORCONFIG_CMD=${EDITORCONFIG_CMD}"
|
||||
+ # Since variables aren't automatically passed to the inner cmake
|
||||
+ "-D" "ECARGS:LIST=-f;${ec_file};${CMAKE_CURRENT_SOURCE_DIR}/${src_file}"
|
||||
+ # Note: the semicolons separate list elements.
|
||||
+ "-P" "${tests_cmakelists_dir}/cmake/ec_sort.cmake")
|
||||
+ endif()
|
||||
+
|
||||
set_tests_properties(${name} PROPERTIES PASS_REGULAR_EXPRESSION
|
||||
- "^[\n]*${regex}$")
|
||||
+ "^[\r\n]*${regex}$")
|
||||
# Permit leading \n's because I can't always get rid of them using
|
||||
# only CMake-provided facilities.
|
||||
endfunction()
|
||||
|
||||
+# Tests for other CLI arguments. Usage:
|
||||
+# new_ec_cli_test(NAME name MATCH pass_regex ARGS arguments...)
|
||||
+function(new_ec_cli_test)
|
||||
+ # Parse args
|
||||
+ set(one_value_keywords NAME MATCH)
|
||||
+ set(multi_value_keywords ARGS)
|
||||
+ cmake_parse_arguments(P
|
||||
+ "" "${one_value_keywords}" "${multi_value_keywords}" ${ARGN})
|
||||
+
|
||||
+ # Add test
|
||||
+ add_test(NAME ${P_NAME} COMMAND ${EDITORCONFIG_CMD} ${P_ARGS})
|
||||
+ set_tests_properties(${name} PROPERTIES PASS_REGULAR_EXPRESSION "${P_MATCH}")
|
||||
+
|
||||
+endfunction()
|
||||
|
||||
# First, make sure the test harness works.
|
||||
add_subdirectory(meta)
|
||||
diff --git a/tests/cli/CMakeLists.txt b/tests/cli/CMakeLists.txt
|
||||
index cc22d84..573b0b5 100644
|
||||
--- a/tests/cli/CMakeLists.txt
|
||||
+++ b/tests/cli/CMakeLists.txt
|
||||
@@ -27,26 +27,24 @@
|
||||
# Tests for version switches
|
||||
|
||||
# test --version option returns version information
|
||||
-add_test(test_long_version_switch ${EDITORCONFIG_CMD} --version)
|
||||
-set_tests_properties(test_long_version_switch PROPERTIES
|
||||
- PASS_REGULAR_EXPRESSION
|
||||
- "^EditorConfig.* Version [0-9]+\\.[0-9]+\\.[0-9]+(-[a-z]+)?[ \t\n\r]$")
|
||||
+new_ec_cli_test(NAME test_long_version_switch
|
||||
+ ARGS --version
|
||||
+ MATCH "^EditorConfig.* Version [0-9]+\\.[0-9]+\\.[0-9]+(-[a-z]+)?[ \t\n\r]$")
|
||||
|
||||
# test -v option returns version information
|
||||
-add_test(test_short_version_switch ${EDITORCONFIG_CMD} -v)
|
||||
-set_tests_properties(test_short_version_switch PROPERTIES
|
||||
- PASS_REGULAR_EXPRESSION
|
||||
- "^EditorConfig.* Version [0-9]+\\.[0-9]+\\.[0-9]+(-[a-z]+)?[ \t\n\r]$")
|
||||
+new_ec_cli_test(NAME test_short_version_switch
|
||||
+ ARGS -v
|
||||
+ MATCH "^EditorConfig.* Version [0-9]+\\.[0-9]+\\.[0-9]+(-[a-z]+)?[ \t\n\r]$")
|
||||
|
||||
# Test for multiple input files
|
||||
|
||||
# when files are specified on command line. The files can appear in either
|
||||
# order in the output, but each file's output line must be grouped with its
|
||||
# file header. Handle this by listing both possibilities manually in the regex.
|
||||
-add_test(multiple_files_on_command_line ${EDITORCONFIG_CMD} -f cli.in
|
||||
+new_ec_cli_test(NAME multiple_files_on_command_line
|
||||
+ ARGS -f cli.in
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/file1.c"
|
||||
- "${CMAKE_CURRENT_SOURCE_DIR}/file2.cpp")
|
||||
-set_tests_properties(multiple_files_on_command_line PROPERTIES
|
||||
- PASS_REGULAR_EXPRESSION
|
||||
+ "${CMAKE_CURRENT_SOURCE_DIR}/file2.cpp"
|
||||
+ MATCH
|
||||
"^(\\[${CMAKE_CURRENT_SOURCE_DIR}/file1.c\\][ \t]*[\n\r]+key1=value1[ \t]*[\n\r]+\\[${CMAKE_CURRENT_SOURCE_DIR}/file2.cpp\\][ \t]*[\n\r]+key2=value2)|(\\[${CMAKE_CURRENT_SOURCE_DIR}/file2.cpp\\][ \t]*[\n\r]+key2=value2[ \t]*[\n\r]+\\[${CMAKE_CURRENT_SOURCE_DIR}/file1.c\\][ \t]*[\n\r]+key1=value1)[ \t\n\r]*$"
|
||||
)
|
||||
diff --git a/tests/cmake/runandsort.cmake b/tests/cmake/runandsort.cmake
|
||||
index 6c46794..5746fc8 100755
|
||||
--- a/tests/cmake/runandsort.cmake
|
||||
+++ b/tests/cmake/runandsort.cmake
|
||||
@@ -68,12 +68,12 @@ function(run_and_sort)
|
||||
cmake_parse_arguments(P "${option_keywords}" "${one_value_keywords}"
|
||||
"${multi_value_keywords}" ${ARGN})
|
||||
|
||||
- #message(STATUS "Running ${P_CMDLINE}")
|
||||
+ #message(STATUS "Running ${P_CMDLINE}") # DEBUG
|
||||
execute_process(COMMAND ${P_CMDLINE}
|
||||
RESULT_VARIABLE ep_retval
|
||||
OUTPUT_VARIABLE ep_stdout
|
||||
ERROR_VARIABLE ep_stderr
|
||||
-)
|
||||
+ )
|
||||
|
||||
# Which one are we processing?
|
||||
if(${P_CAPTURE_STDERR})
|
||||
@@ -82,8 +82,9 @@ function(run_and_sort)
|
||||
set(ep_out "${ep_stdout}")
|
||||
endif()
|
||||
|
||||
- #message(STATUS "Got stdout =${ep_stdout}=")
|
||||
- #message(STATUS "Got stderr =${ep_stderr}=")
|
||||
+ #message(STATUS "Got retval =${ep_retval}=") # DEBUG
|
||||
+ #message(STATUS "Got stdout =${ep_stdout}=") # DEBUG
|
||||
+ #message(STATUS "Got stderr =${ep_stderr}=") # DEBUG
|
||||
|
||||
# Early bail on failure
|
||||
if(NOT("${ep_retval}" EQUAL "0"))
|
||||
@@ -102,30 +103,30 @@ function(run_and_sort)
|
||||
# Change all the semicolons in the output to \x01
|
||||
string(ASCII 1 ONE)
|
||||
string(REPLACE ";" "${ONE}" ep_out "${ep_out}")
|
||||
- #message(STATUS "After escaping =${ep_out}=")
|
||||
+ #message(STATUS "After escaping =${ep_out}=") # DEBUG
|
||||
|
||||
# Normalize line endings, just in case
|
||||
string(REGEX REPLACE "\r|\n|\r\n" "\n" ep_out "${ep_out}")
|
||||
- #message(STATUS "After line-endings =${ep_out}=")
|
||||
+ #message(STATUS "After line-endings =${ep_out}=") # DEBUG
|
||||
|
||||
# Turn the string into a list
|
||||
string(REPLACE "\n" ";" ep_out "${ep_out}")
|
||||
- #message(STATUS "After listifying =${ep_out}=")
|
||||
+ #message(STATUS "After listifying =${ep_out}=") # DEBUG
|
||||
|
||||
# Sort the list
|
||||
list(SORT ep_out)
|
||||
|
||||
# Back to individual lines
|
||||
string(REPLACE ";" "\n" ep_out "${ep_out}")
|
||||
- #message(STATUS "After back to lines =${ep_out}=")
|
||||
+ #message(STATUS "After back to lines =${ep_out}=") # DEBUG
|
||||
|
||||
# And back to semicolons. Note: I am not trying to reverse line endings.
|
||||
string(REPLACE "${ONE}" ";" ep_out "${ep_out}")
|
||||
- #message(STATUS "After unescaping =${ep_out}=")
|
||||
+ #message(STATUS "After unescaping =${ep_out}=") # DEBUG
|
||||
|
||||
# Out to the caller
|
||||
set(${P_RETVAL} "${ep_out}" PARENT_SCOPE)
|
||||
- #message(STATUS "Returned =${ep_out}=")
|
||||
+ #message(STATUS "Returned =${ep_out}=") # DEBUG
|
||||
|
||||
endfunction(run_and_sort)
|
||||
|
||||
diff --git a/tests/filetree/CMakeLists.txt b/tests/filetree/CMakeLists.txt
|
||||
index 6e2018f..1d214ed 100644
|
||||
--- a/tests/filetree/CMakeLists.txt
|
||||
+++ b/tests/filetree/CMakeLists.txt
|
||||
@@ -63,7 +63,8 @@ else(WIN32)
|
||||
set(path_separator_backslash_in_cmd_line_regex "^[ \t\n\r]*$")
|
||||
endif(WIN32)
|
||||
new_ec_test_full_ec_file_path(path_separator_backslash_in_cmd_line
|
||||
- path_separator.in "${CMAKE_CURRENT_SOURCE_DIR}\\\\path\\\\separator"
|
||||
+ path_separator.in
|
||||
+ "${CMAKE_CURRENT_SOURCE_DIR}\\path\\separator"
|
||||
${path_separator_backslash_in_cmd_line_regex})
|
||||
|
||||
# Tests path separator match below top of path
|
||||
@@ -83,7 +84,7 @@ new_ec_test(windows_separator2 path_separator.in windows/separator2 "^[ \t\n\r]*
|
||||
|
||||
# Globs with backslash in it but should be considered as file name on Non-Windows system
|
||||
if((NOT WIN32) AND (NOT CYGWIN))
|
||||
- new_ec_test(backslash_not_on_windows path_separator.in "windows\\\\separator2" "^key4=value4[ \t\n\r]*$")
|
||||
+ new_ec_test(backslash_not_on_windows path_separator.in "windows\\separator2" "^key4=value4[ \t\n\r]*$")
|
||||
endif()
|
||||
|
||||
new_ec_test(path_with_special_chars path_with_special_chars.in "path_with_special_[chars/test.a" "^key=value[ \t\n\r]*$")
|
||||
diff --git a/tests/glob/CMakeLists.txt b/tests/glob/CMakeLists.txt
|
||||
index 98f10b9..aa8226d 100644
|
||||
--- a/tests/glob/CMakeLists.txt
|
||||
+++ b/tests/glob/CMakeLists.txt
|
||||
@@ -179,7 +179,7 @@ new_ec_test(braces_escaped_brace3 braces.in f.txt "^closing=yes[ \t\n\r]*$")
|
||||
# escaped backslash
|
||||
new_ec_test(braces_escaped_backslash1 braces.in g.txt "^backslash=yes[ \t\n\r]*$")
|
||||
if((NOT WIN32) AND (NOT CYGWIN)) # this case is impossible on Windows.
|
||||
- new_ec_test(braces_escaped_backslash2 braces.in \\\\.txt "^backslash=yes[ \t\n\r]*$")
|
||||
+ new_ec_test(braces_escaped_backslash2 braces.in "\\.txt" "^backslash=yes[ \t\n\r]*$")
|
||||
endif()
|
||||
new_ec_test(braces_escaped_backslash3 braces.in i.txt "^backslash=yes[ \t\n\r]*$")
|
||||
|
||||
diff --git a/tests/meta/CMakeLists.txt b/tests/meta/CMakeLists.txt
|
||||
index 8c839c7..4115da1 100755
|
||||
--- a/tests/meta/CMakeLists.txt
|
||||
+++ b/tests/meta/CMakeLists.txt
|
||||
@@ -37,9 +37,11 @@ message(STATUS "meta: Using editorconfig ${EDITORCONFIG_CMD}")
|
||||
# Test run_and_sort()
|
||||
add_test(meta_runandsort cmake -P "${tests_meta_cmakelists_dir}/sample.cmake")
|
||||
set_tests_properties(meta_runandsort PROPERTIES PASS_REGULAR_EXPRESSION
|
||||
- "^[\n]*0${L}a;b${L}b;c${L}b;e${L}b;f${L}c;b;a${L}d${L}$")
|
||||
+ "^[\r\n]*0${L}a;b${L}b;c${L}b;e${L}b;f${L}c;b;a${L}d${L}$")
|
||||
# Have to permit leading \n's - I don't know how to get rid of them
|
||||
|
||||
-# Test the new multiline macro on a simple case
|
||||
+# Test the new multiline macro on a simple case. The new_ec_test_multiline
|
||||
+# function adds /^[\r\n]*/ to the beginning of the provided regex, and
|
||||
+# /$/ to the end.
|
||||
new_ec_test_multiline(meta_multiline meta.in meta.c
|
||||
- "^[\n]*answer=42${L}$")
|
||||
+ "answer=42${L}")
|
|
@ -0,0 +1,38 @@
|
|||
Description: Fix errors in manpage generation document
|
||||
Man page generating document was using unescaped hyphen which was
|
||||
fixed by this patch. There was also a spelling mistake which is fixed
|
||||
by this patch.
|
||||
Author: Vasudev Kamath <kamathvasudev@gmail.com>
|
||||
Forwarded: no
|
||||
Last-Update: 2016-03-25
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
--- a/include/editorconfig/editorconfig.h
|
||||
+++ b/include/editorconfig/editorconfig.h
|
||||
@@ -72,13 +72,13 @@
|
||||
* @endhtmlonly
|
||||
* @manonly
|
||||
*
|
||||
- * -f Specify conf filename other than ".editorconfig".
|
||||
+ * \-f Specify conf filename other than ".editorconfig".
|
||||
*
|
||||
- * -b Specify version (used by devs to test compatibility).
|
||||
+ * \-b Specify version (used by devs to test compatibility).
|
||||
*
|
||||
- * -h OR --help Print this help message.
|
||||
+ * \-h OR \-\-help Print this help message.
|
||||
*
|
||||
- * --version Display version information.
|
||||
+ * \-\-version Display version information.
|
||||
*
|
||||
* @endmanonly
|
||||
*
|
||||
@@ -181,7 +181,7 @@
|
||||
* <li><strong>tab_width</strong>: a whole number defining the number of columns used to represent a tab character. This defaults to the value of <strong>indent_size</strong> and should not usually need to be specified.</li>
|
||||
* <li><strong>end_of_line</strong>: set to "lf", "cr", or "crlf" to control how line breaks are represented. The values are case insensitive.</li>
|
||||
* <li><strong>charset</strong>: set to "latin1", "utf-8", "utf-8-bom", "utf-16be" or "utf-16le" to control the character set. Use of "utf-8-bom" is discouraged.</li>
|
||||
- * <li><strong>trim_trailing_whitespace</strong>: set to "true" to remove any whitespace characters preceeding newline characters and "false" to ensure it doesn't.</li>
|
||||
+ * <li><strong>trim_trailing_whitespace</strong>: set to "true" to remove any whitespace characters preceding newline characters and "false" to ensure it doesn't.</li>
|
||||
* <li><strong>insert_final_newline</strong>: set to "true" ensure file ends with a newline when saving and "false" to ensure it doesn't.</li>
|
||||
* <li><strong>root</strong>: special property that should be specified at the top of the file outside of any sections. Set to "true" to stop <code>.editorconfig</code> files search on current file. The value is case insensitive.</li>
|
||||
* </ul>
|
|
@ -0,0 +1,20 @@
|
|||
Description: Disable timestamp generation in doxygen
|
||||
If Doxyfile contains HTML_TIMESTAMP = YES, Doxygen will
|
||||
add a timestamp to its generated documentation. To allow
|
||||
reproducible builds this should be disabled.
|
||||
Author: Vasudev Kamath <kamathvasudev@gmail.com>
|
||||
Forwarded: no
|
||||
Last-Update: 2016-03-25
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
--- a/doc/Doxyfile.in
|
||||
+++ b/doc/Doxyfile.in
|
||||
@@ -1129,7 +1129,7 @@
|
||||
# The default value is: YES.
|
||||
# This tag requires that the tag GENERATE_HTML is set to YES.
|
||||
|
||||
-HTML_TIMESTAMP = YES
|
||||
+HTML_TIMESTAMP = NO
|
||||
|
||||
# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
|
||||
# documentation will contain sections that can be hidden and shown after the
|
|
@ -0,0 +1,20 @@
|
|||
Description: Use the same name for static and shared library
|
||||
Upstream uses libeditorconfig_static.a for static library but
|
||||
d-shlibmove expects both library to have same name. This patch
|
||||
fixes it.
|
||||
Author: Vasudev Kamath <kamathvasudev@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2016-03-25
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
--- a/src/lib/CMakeLists.txt
|
||||
+++ b/src/lib/CMakeLists.txt
|
||||
@@ -57,7 +57,7 @@
|
||||
INTERFACE $<INSTALL_INTERFACE:include>
|
||||
)
|
||||
set_target_properties(editorconfig_static PROPERTIES
|
||||
- OUTPUT_NAME editorconfig_static
|
||||
+ OUTPUT_NAME editorconfig
|
||||
VERSION ${PROJECT_VERSION})
|
||||
|
||||
# We need to link Shwapi since we use PathIsRelative
|
|
@ -0,0 +1,20 @@
|
|||
Description: Fix the directory name where docs are installed
|
||||
Upstream installs docs to usr/share/doc/editorconfig but in Debian
|
||||
we ship these docs as part of editorconfig-doc package. This patch
|
||||
changes the directory name from editorconfig to editorconfig-doc.
|
||||
Author: Vasudev Kamath <kamathvasudev@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2016-03-25
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
--- a/doc/CMakeLists.txt
|
||||
+++ b/doc/CMakeLists.txt
|
||||
@@ -125,7 +125,7 @@
|
||||
|
||||
if(INSTALL_HTML_DOC)
|
||||
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html"
|
||||
- DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/doc/editorconfig")
|
||||
+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/doc/editorconfig-doc")
|
||||
endif(INSTALL_HTML_DOC)
|
||||
|
||||
else(DOXYGEN_FOUND)
|
|
@ -0,0 +1,3 @@
|
|||
0xxx: Grabbed from upstream development.
|
||||
1xxx: Possibly relevant for upstream adoption.
|
||||
2xxx: Only relevant for official Debian release.
|
|
@ -0,0 +1,9 @@
|
|||
1001_fix_manpages.patch
|
||||
1002_reproducible_builds.patch
|
||||
2001_fix_static_libname.patch
|
||||
2002_fix_docs_directory.patch
|
||||
0005-Also-test-that-shouldn-t-match.patch
|
||||
0006-Rename-two-tests-property-value.patch
|
||||
0007-Remove-escaped_octothorpe_in_value-per-editorconfig-.patch
|
||||
0008-Remove-escaped_semicolon_in_property-per-votes-5-and.patch
|
||||
0009-Fix-multiline-result-tests-escape-backslashes.patch
|
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
|
||||
# resolve if release is experimental
|
||||
EXP_RELEASE = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))
|
||||
|
||||
# relax symbols check when targeting experimental
|
||||
export DPKG_GENSYMBOLS_CHECK_LEVEL=$(if $(EXP_RELEASE),0,1)
|
||||
|
||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
|
||||
%:
|
||||
dh $@ --with pkgkde_symbolshelper
|
||||
|
||||
override_dh_auto_configure:
|
||||
dh_auto_configure -- -DINSTALL_HTML_DOC=ON -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
|
||||
|
||||
execute_after_dh_shlibdeps:
|
||||
d-devlibdeps \
|
||||
--override s/libeditorconfig0-dev/libeditorconfig-dev/ \
|
||||
debian/libeditorconfig-dev.substvars \
|
||||
debian/tmp/usr/lib/*/*.so
|
||||
|
||||
override_dh_strip:
|
||||
dh_strip --dbgsym-migration='libeditorconfig0-dbg (<< 0.12.1-2~)'
|
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
|
@ -0,0 +1,3 @@
|
|||
# License is in Reference field (see bug#786450)
|
||||
missing-license-paragraph-in-dep5-copyright debian/copyright gpl-3\+ *
|
||||
missing-license-text-in-dep5-copyright debian/copyright GPL-3\+ *
|
|
@ -0,0 +1,3 @@
|
|||
Tests: upstream-tests
|
||||
Depends: @builddeps@
|
||||
Restrictions: allow-stderr
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh -ex
|
||||
dh_auto_configure
|
||||
dh_auto_build
|
||||
dh_auto_test
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
Bug-Database: https://github.com/editorconfig/editorconfig-core-c/issues
|
||||
Bug-Submit: https://github.com/editorconfig/editorconfig-core-c/issues/new
|
||||
Repository: https://github.com/editorconfig/editorconfig-core-c.git
|
||||
Repository-Browse: https://github.com/editorconfig/editorconfig-core-c
|
|
@ -0,0 +1,16 @@
|
|||
version=4
|
||||
# check: uscan --report
|
||||
# update: gbp import-orig --upstream-vcs-tag=vX.Y.Z --uscan
|
||||
|
||||
opts=\
|
||||
filenamemangle=s/.*?(@ANY_VERSION@@ARCHIVE_EXT@)/@PACKAGE@-$1/,\
|
||||
dversionmangle=auto \
|
||||
https://github.com/editorconfig/editorconfig-core-c/tags \
|
||||
.*?@ANY_VERSION@@ARCHIVE_EXT@
|
||||
|
||||
opts=\
|
||||
filenamemangle=s/.*?(@ANY_VERSION@@ARCHIVE_EXT@)/@PACKAGE@-$1/,\
|
||||
dversionmangle=auto,\
|
||||
component=tests \
|
||||
https://github.com/editorconfig/editorconfig-core-test/tags \
|
||||
.*?@ANY_VERSION@@ARCHIVE_EXT@
|
Loading…
Reference in New Issue