]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
tools/include: fix clean and rework COPYING for installed Xen public header
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 1 Dec 2022 15:14:59 +0000 (16:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 1 Dec 2022 15:14:59 +0000 (16:14 +0100)
Use actual include directory used to install the public header in
COPYING file.

Also, move the input file out of "tools/include/xen/" because that
directory is removed on `make clean`.

We can't used ./configure because $includedir contain another
variable, so the change is done in Makefile.

Fixes: 4ea75e9a9058 ("Rework COPYING installed in /usr/include/xen/, due to several licences")
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/include/.gitignore [new file with mode: 0644]
tools/include/Makefile
tools/include/xen.COPYING.in [new file with mode: 0644]
tools/include/xen/.gitignore [deleted file]
tools/include/xen/COPYING [deleted file]

diff --git a/tools/include/.gitignore b/tools/include/.gitignore
new file mode 100644 (file)
index 0000000..be14e36
--- /dev/null
@@ -0,0 +1 @@
+/xen/
index f838171e8cd55423d31ac083f2247eef95a2fe5d..d69aeb54bf1d1a508690b6f596374e5ca5f3712e 100644 (file)
@@ -24,6 +24,7 @@ xen-foreign:
 xen-dir:
        mkdir -p xen/libelf acpi
        find xen/ acpi/ -type l -exec rm '{}' +
+       sed -e 's#@includedir@#$(includedir)/xen#g' xen.COPYING.in > xen/COPYING
        ln -s $(XEN_ROOT)/xen/include/public/*.h xen/
        ln -s $(XEN_ROOT)/xen/include/public/*/ xen/
        ln -s ../xen-sys/$(XEN_OS) xen/sys
diff --git a/tools/include/xen.COPYING.in b/tools/include/xen.COPYING.in
new file mode 100644 (file)
index 0000000..25513fe
--- /dev/null
@@ -0,0 +1,26 @@
+XEN NOTICE
+==========
+
+This licence applies to all files within this subdirectory ("@includedir@")
+with the exception of "sys/" which may include headers under different
+licences.
+
+=====================================================================
+
+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.
diff --git a/tools/include/xen/.gitignore b/tools/include/xen/.gitignore
deleted file mode 100644 (file)
index 0628b2d..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-*
-!COPYING
diff --git a/tools/include/xen/COPYING b/tools/include/xen/COPYING
deleted file mode 100644 (file)
index fe3f9b7..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-XEN NOTICE
-==========
-
-This licence applies to all files within this subdirectory ("/usr/include/xen")
-with the exception of "sys/" which may include headers under different
-licences.
-
-=====================================================================
-
-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.